/* ===== VARIABLES ===== */
:root {
  --teal-900: #072e39;
  --teal-800: #0b4150;
  --teal-700: #0e5566;
  --teal-600: #12697f;
  --teal-500: #1a8299;
  --gold:     #e0b84c;
  --gold-600: #c99e33;
  --gold-soft:#f2d98a;
  --ink:      #0a1f26;
  --paper:    #f6f9fa;
  --white:    #ffffff;
  --muted:    #6b8189;
  --line:     rgba(14, 85, 102, 0.12);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(7, 46, 57, 0.16);
  --shadow-sm: 0 8px 24px rgba(7, 46, 57, 0.10);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== BRAND LOGO ===== */
.brand { display: inline-flex; align-items: baseline; gap: 8px; position: relative; font-family: 'Montserrat', sans-serif; }
.brand-name { font-weight: 900; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--white); }
.brand-media { font-weight: 400; font-size: 1.15rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); }
.brand-signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; margin-left: 2px; }
.brand-signal i { width: 3px; background: var(--gold); border-radius: 3px; display: block; }
.brand-signal i:nth-child(1) { height: 6px; }
.brand-signal i:nth-child(2) { height: 10px; }
.brand-signal i:nth-child(3) { height: 15px; }
.footer .brand-name, .footer .brand-media { color: var(--white); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled {
  background: rgba(7, 46, 57, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold); color: var(--teal-900) !important; font-weight: 700 !important;
  padding: 10px 20px; border-radius: 100px; transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(224,184,76,0.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 100px; font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 0.98rem; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-gold { background: var(--gold); color: var(--teal-900); box-shadow: 0 12px 30px rgba(224,184,76,0.35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(224,184,76,0.5); background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-3px); }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 16px;
}
.section-dark .eyebrow, .cta-section .eyebrow, .hero .eyebrow { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 80px;
  background: radial-gradient(circle at 75% 20%, var(--teal-600), var(--teal-800) 45%, var(--teal-900));
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(224,184,76,0.14), transparent 40%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.hero-copy h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Montserrat', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stats span { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 6px; max-width: 120px; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; }
.screen-frame {
  position: relative; width: min(340px, 78vw); border-radius: 26px;
  padding: 14px; background: linear-gradient(160deg, #10333d, #061f27);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
  animation: floaty 6s ease-in-out infinite;
}
.screen-frame img { border-radius: 16px; width: 100%; }
.screen-glow {
  position: absolute; inset: -30% -30% auto -30%; height: 60%;
  background: radial-gradient(circle, rgba(224,184,76,0.3), transparent 70%);
  filter: blur(30px); z-index: -1;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.float-card {
  position: absolute; background: var(--white); color: var(--ink);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.float-card--top { top: 30px; left: -10px; animation: floaty 5s ease-in-out infinite; }
.float-card--bottom { bottom: 40px; right: -14px; animation: floaty 7s ease-in-out infinite; }
.float-card strong { color: var(--teal-700); font-family: 'Montserrat', sans-serif; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: #29c46a; box-shadow: 0 0 0 4px rgba(41,196,106,0.25); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.4); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.scroll-hint span { width: 4px; height: 8px; background: var(--gold); border-radius: 4px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ===== MARQUEE ===== */
.marquee-section { background: var(--teal-900); padding: 34px 0; overflow: hidden; }
.marquee-label { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee-track span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: rgba(255,255,255,0.85); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--gold); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--white), var(--paper)); }
.section-dark { background: radial-gradient(circle at 20% 10%, var(--teal-700), var(--teal-900)); color: var(--white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
.section:not(.section-dark) .section-head h2 { color: var(--teal-800); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,0.75); }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-600), var(--teal-800)); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; color: var(--teal-800); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 32px 24px; border-radius: var(--radius); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); transition: transform .3s var(--ease), background .3s; }
.step:hover { transform: translateY(-8px); background: rgba(255,255,255,0.09); }
.step-num { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.4rem; color: var(--gold); opacity: 0.85; display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--white); }
.step p { color: rgba(255,255,255,0.72); font-size: 0.93rem; }

/* ===== GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--teal-900); }
.gallery-item img { width: 100%; height: 340px; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: var(--white);
  background: linear-gradient(transparent, rgba(7,46,57,0.9));
  display: flex; flex-direction: column;
}
.gallery-item figcaption strong { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; }
.gallery-item figcaption span { font-size: 0.82rem; color: var(--gold-soft); }

/* ===== VENTAJAS ===== */
.ventajas-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.ventajas-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--teal-800); margin-bottom: 16px; }
.ventajas-copy > p { color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; }
.check-list { display: grid; gap: 14px; margin-bottom: 32px; }
.check-list li { position: relative; padding-left: 36px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-700); box-shadow: 0 0 0 4px rgba(14,85,102,0.12);
}
.check-list li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 4px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.ventajas-stats { display: grid; gap: 18px; }
.vstat {
  background: linear-gradient(150deg, var(--teal-700), var(--teal-900)); color: var(--white);
  padding: 26px 28px; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; align-items: baseline; gap: 16px;
}
.vstat strong { font-family: 'Montserrat', sans-serif; font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.vstat span { font-size: 0.92rem; color: rgba(255,255,255,0.8); }

/* ===== CTA / CONTACTO ===== */
.cta-section { background: radial-gradient(circle at 80% 0%, var(--teal-700), var(--teal-900)); color: var(--white); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.cta-copy > p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.contact-list a { color: rgba(255,255,255,0.9); transition: color .2s; }
.contact-list a:hover { color: var(--gold); }

.cta-form { background: var(--white); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--teal-800); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(14,85,102,0.1); background: var(--white); }
.form-msg { margin-top: 14px; font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-msg.ok { color: #1a9c5b; }
.form-msg.err { color: #d94848; }

/* ===== FOOTER ===== */
.footer { background: var(--teal-900); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; max-width: 380px; font-size: 0.95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; justify-content: flex-end; }
.footer-nav a { color: rgba(255,255,255,0.75); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom .container { text-align: center; }

/* ===== REVEAL ANIMATION ===== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .cards, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .ventajas-grid, .cta-inner, .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); flex-direction: column;
    align-items: flex-start; gap: 22px; padding: 100px 32px 40px;
    background: rgba(7,46,57,0.98); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 101; }
  .header { padding: 14px 0; background: rgba(7,46,57,0.92); backdrop-filter: blur(10px); }
}
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .cards, .steps, .gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-stats span { max-width: 90px; }
  .gallery-item img { height: 420px; }
  .cta-form { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
