/* ==========================================================================
   PortWave Solutions · Premium B2B Site
   Brand Bible: Ocean Depth + Trade Gold + Trade White
   ========================================================================== */

:root {
  /* Paleta */
  --ocean-depth: #0B1F3A;
  --ocean-mid: #1B3556;
  --ocean-light: #2C4E76;
  --trade-gold: #C9A84C;
  --trade-gold-light: #E0C26F;
  --trade-white: #F8F7F4;
  --steel-grey: #6B7280;
  --steel-light: #9CA3AF;
  --pure-white: #FFFFFF;
  --black: #000000;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing (8pt scale) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --s-9: 192px;

  /* Container */
  --max-w: 1280px;
  --max-w-content: 800px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ocean-depth); background: var(--trade-white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* Tipografia */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(24px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 1.5vw, 22px); }
p { font-size: clamp(16px, 1.1vw, 18px); }

.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--trade-gold); margin-bottom: var(--s-2); }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-3); }
.container-narrow { max-width: var(--max-w-content); margin: 0 auto; padding: 0 var(--s-3); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(11, 31, 58, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: all .3s ease; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s-2) var(--s-3); max-width: var(--max-w); margin: 0 auto; }

.brand { display: flex; align-items: center; gap: var(--s-2); color: var(--pure-white); font-family: var(--font-serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--trade-gold), var(--trade-gold-light)); display: flex; align-items: center; justify-content: center; color: var(--ocean-depth); font-family: var(--font-sans); font-weight: 700; font-size: 14px; letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: var(--s-4); }
.nav-link { color: rgba(248, 247, 244, 0.75); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--pure-white); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); padding: 12px 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; border-radius: 6px; transition: all .25s ease; cursor: pointer; }
.btn-primary { background: var(--trade-gold); color: var(--ocean-depth); }
.btn-primary:hover { background: var(--trade-gold-light); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--pure-white); border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { border-color: var(--pure-white); }
.btn-text { color: var(--trade-gold); padding: 0; }
.btn-text:hover { color: var(--trade-gold-light); }
.btn-large { padding: 16px 32px; font-size: 15px; }

.mobile-toggle { display: none; color: var(--pure-white); font-size: 24px; padding: 8px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--ocean-depth); flex-direction: column; padding: var(--s-4); gap: var(--s-3); transform: translateY(-110%); transition: transform .3s ease; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding: var(--s-9) 0 var(--s-7); background: linear-gradient(135deg, var(--ocean-depth) 0%, var(--ocean-mid) 100%); color: var(--pure-white); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(44, 78, 118, 0.4) 0%, transparent 50%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { color: var(--pure-white); margin-bottom: var(--s-3); }
.hero-sub { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 28px); font-weight: 400; color: var(--trade-gold-light); font-style: italic; margin-bottom: var(--s-4); }
.hero-body { font-size: clamp(17px, 1.2vw, 20px); color: rgba(248, 247, 244, 0.85); margin-bottom: var(--s-5); max-width: 680px; line-height: 1.7; }
.hero-ctas { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ==========================================================================
   TICKER (trust bar)
   ========================================================================== */
.ticker { background: var(--ocean-mid); color: var(--trade-white); padding: var(--s-3) 0; overflow: hidden; border-top: 1px solid rgba(201, 168, 76, 0.15); border-bottom: 1px solid rgba(201, 168, 76, 0.15); }
.ticker-track { display: flex; gap: var(--s-6); white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: var(--s-2); font-size: 14px; font-weight: 500; letter-spacing: 0.05em; }
.ticker-item::before { content: '·'; color: var(--trade-gold); font-size: 24px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS · base
   ========================================================================== */
.section { padding: var(--s-8) 0; }
.section-dark { background: var(--ocean-depth); color: var(--pure-white); }
.section-mid { background: var(--ocean-mid); color: var(--pure-white); }
.section-light { background: var(--trade-white); }
.section-white { background: var(--pure-white); }

.section-header { max-width: 760px; margin: 0 auto var(--s-6); text-align: center; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: var(--s-3); }
.section-header p { color: var(--steel-grey); font-size: 18px; line-height: 1.7; }
.section-dark .section-header p { color: rgba(248, 247, 244, 0.7); }

/* ==========================================================================
   PROPOSTA DE VALOR
   ========================================================================== */
.value-prop { padding: var(--s-8) 0; background: var(--pure-white); }
.value-prop-content { max-width: 820px; margin: 0 auto; text-align: center; }
.value-prop h2 { margin-bottom: var(--s-4); }
.value-prop p { font-size: 19px; line-height: 1.75; color: var(--ocean-depth); margin-bottom: var(--s-3); }
.value-prop strong { color: var(--ocean-depth); font-weight: 600; }

/* ==========================================================================
   PILARES (cards 4)
   ========================================================================== */
.pillars { background: var(--trade-white); padding: var(--s-8) 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
.pillar { background: var(--pure-white); padding: var(--s-4); border-radius: var(--radius-md); border: 1px solid rgba(11, 31, 58, 0.08); transition: all .3s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11, 31, 58, 0.08); border-color: var(--trade-gold); }
.pillar-num { font-family: var(--font-serif); font-size: 14px; color: var(--trade-gold); margin-bottom: var(--s-2); letter-spacing: 0.05em; }
.pillar h3 { font-size: 22px; margin-bottom: var(--s-2); }
.pillar p { color: var(--steel-grey); font-size: 15px; line-height: 1.7; }

/* ==========================================================================
   SERVICES PREVIEW
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s-3); }
.service-card { background: var(--ocean-depth); color: var(--pure-white); padding: var(--s-5); border-radius: var(--radius-md); position: relative; overflow: hidden; transition: all .3s ease; border: 1px solid rgba(201, 168, 76, 0.15); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--trade-gold), transparent); opacity: 0; transition: opacity .3s ease; }
.service-card:hover { transform: translateY(-4px); border-color: var(--trade-gold); }
.service-card:hover::before { opacity: 1; }
.service-card .eyebrow { color: var(--trade-gold); }
.service-card h3 { font-size: 28px; margin-bottom: var(--s-3); color: var(--pure-white); }
.service-card p { color: rgba(248, 247, 244, 0.75); margin-bottom: var(--s-4); line-height: 1.7; }

/* ==========================================================================
   COMPARATIVO 3-col
   ========================================================================== */
.comparison { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(11, 31, 58, 0.1); border-radius: var(--radius-md); overflow: hidden; margin-top: var(--s-5); }
.comp-col { padding: var(--s-4); background: var(--pure-white); border-right: 1px solid rgba(11, 31, 58, 0.08); }
.comp-col:last-child { border-right: none; background: linear-gradient(180deg, var(--ocean-depth), var(--ocean-mid)); color: var(--pure-white); }
.comp-col h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-3); color: var(--steel-grey); }
.comp-col:last-child h4 { color: var(--trade-gold); }
.comp-col ul li { padding: 12px 0; border-bottom: 1px solid rgba(11, 31, 58, 0.06); font-size: 15px; }
.comp-col:last-child ul li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.comp-col ul li:last-child { border-bottom: none; }
@media (max-width: 760px) {
  .comparison { grid-template-columns: 1fr; }
  .comp-col { border-right: none; border-bottom: 1px solid rgba(11, 31, 58, 0.08); }
}

/* ==========================================================================
   CASE STUDY
   ========================================================================== */
.case-study { background: var(--ocean-depth); color: var(--pure-white); padding: var(--s-8) 0; }
.case-content { max-width: 820px; margin: 0 auto; }
.case-content h2 { margin-bottom: var(--s-4); }
.case-content p { font-size: 18px; line-height: 1.8; color: rgba(248, 247, 244, 0.85); margin-bottom: var(--s-3); }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.stat-num { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 56px); color: var(--trade-gold); line-height: 1; margin-bottom: var(--s-1); }
.stat-label { font-size: 14px; color: rgba(248, 247, 244, 0.65); }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { background: linear-gradient(135deg, var(--ocean-depth), var(--ocean-mid)); color: var(--pure-white); padding: var(--s-8) 0; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.08), transparent 60%); }
.cta-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-final h2 { margin-bottom: var(--s-3); color: var(--pure-white); }
.cta-final p { color: rgba(248, 247, 244, 0.75); margin-bottom: var(--s-5); font-size: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ocean-depth); color: rgba(248, 247, 244, 0.7); padding: var(--s-7) 0 var(--s-4); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s-5); margin-bottom: var(--s-6); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-brand .brand { color: var(--pure-white); margin-bottom: var(--s-2); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--trade-gold); margin-bottom: var(--s-3); font-family: var(--font-sans); font-weight: 600; }
.footer-col ul li { padding: 6px 0; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--pure-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13px; flex-wrap: wrap; gap: var(--s-2); }
.footer-bottom .legal { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.page-header { background: linear-gradient(135deg, var(--ocean-depth), var(--ocean-mid)); color: var(--pure-white); padding: calc(var(--s-7) + 80px) 0 var(--s-7); }
.page-header h1 { margin-bottom: var(--s-3); }
.page-header p { font-size: clamp(18px, 1.4vw, 22px); color: rgba(248, 247, 244, 0.8); max-width: 720px; line-height: 1.6; }

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */
.content-block { padding: var(--s-7) 0; }
.content-block h2 { margin-bottom: var(--s-3); }
.content-block h3 { margin-top: var(--s-4); margin-bottom: var(--s-2); }
.content-block p { margin-bottom: var(--s-3); line-height: 1.8; color: var(--ocean-depth); }
.content-block ul, .content-block ol { margin-bottom: var(--s-3); padding-left: var(--s-3); }
.content-block ul li, .content-block ol li { margin-bottom: var(--s-1); list-style: disc; padding-left: var(--s-1); }
.content-block ol li { list-style: decimal; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.step { padding: var(--s-3); background: var(--pure-white); border: 1px solid rgba(11, 31, 58, 0.08); border-radius: var(--radius-md); }
.step-num { font-family: var(--font-serif); font-size: 32px; color: var(--trade-gold); margin-bottom: var(--s-2); line-height: 1; }
.step h4 { font-size: 18px; margin-bottom: var(--s-1); font-family: var(--font-sans); font-weight: 600; }
.step p { font-size: 14px; color: var(--steel-grey); line-height: 1.6; margin: 0; }

/* FAQ */
.faq-item { padding: var(--s-3) 0; border-bottom: 1px solid rgba(11, 31, 58, 0.08); }
.faq-item h4 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; margin-bottom: var(--s-2); }
.faq-item p { font-size: 16px; color: var(--steel-grey); margin: 0; }

/* ==========================================================================
   FORM (Get a Quote)
   ========================================================================== */
.quote-form-section { background: var(--trade-white); padding: var(--s-7) 0; }
.quote-form { max-width: 640px; margin: 0 auto; background: var(--pure-white); padding: var(--s-5); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(11, 31, 58, 0.08); border: 1px solid rgba(11, 31, 58, 0.06); }
.form-progress { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.form-progress-bar { flex: 1; height: 4px; background: rgba(11, 31, 58, 0.08); border-radius: 2px; overflow: hidden; }
.form-progress-fill { height: 100%; background: var(--trade-gold); transition: width .4s ease; }
.form-progress-text { font-size: 13px; color: var(--steel-grey); font-weight: 500; letter-spacing: 0.05em; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-group { margin-bottom: var(--s-3); }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ocean-depth); margin-bottom: var(--s-1); letter-spacing: 0.01em; }
.form-group label .required { color: var(--trade-gold); margin-left: 2px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group select { width: 100%; padding: 14px 16px; font-family: inherit; font-size: 15px; color: var(--ocean-depth); background: var(--trade-white); border: 1px solid rgba(11, 31, 58, 0.12); border-radius: 6px; transition: all .25s ease; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--trade-gold); background: var(--pure-white); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15); }
.form-group .helper { font-size: 13px; color: var(--steel-grey); margin-top: 6px; }

.phone-row { display: grid; grid-template-columns: 100px 1fr; gap: var(--s-1); }

.radio-group { display: flex; flex-direction: column; gap: var(--s-1); margin-top: var(--s-1); }
.radio-option { display: flex; align-items: center; padding: 12px 16px; background: var(--trade-white); border: 1px solid rgba(11, 31, 58, 0.12); border-radius: 6px; cursor: pointer; transition: all .2s ease; font-size: 15px; }
.radio-option:hover { border-color: var(--trade-gold); }
.radio-option input { margin-right: var(--s-1); accent-color: var(--trade-gold); }
.radio-option input:checked + span { font-weight: 600; }
.radio-option:has(input:checked) { background: rgba(201, 168, 76, 0.08); border-color: var(--trade-gold); }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid rgba(11, 31, 58, 0.06); }
.form-actions .btn-text { font-size: 14px; }
.form-disclaimer { font-size: 13px; color: var(--steel-grey); margin-top: var(--s-3); text-align: center; }
.form-disclaimer a { color: var(--ocean-depth); text-decoration: underline; }

/* Success state */
.form-success { text-align: center; padding: var(--s-5) var(--s-3); display: none; }
.form-success.active { display: block; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--trade-gold); color: var(--ocean-depth); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: var(--s-3); }
.form-success h3 { margin-bottom: var(--s-2); }

/* ==========================================================================
   ANIMATIONS · scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   PREVIEW BANNER (only on preview)
   ========================================================================== */
.preview-banner { background: var(--trade-gold); color: var(--ocean-depth); text-align: center; padding: 8px var(--s-2); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; position: fixed; top: 0; left: 0; right: 0; z-index: 200; }
.preview-banner + .navbar { top: 32px; }
.preview-banner + .navbar + * { padding-top: 32px; }
@media (max-width: 600px) {
  .preview-banner { font-size: 11px; padding: 6px var(--s-2); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  .section { padding: var(--s-6) 0; }
  .hero { padding: 120px 0 var(--s-6); min-height: auto; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { gap: var(--s-3); }
  .quote-form { padding: var(--s-3); }
}
