/* ═══════════════════════════════════════════════════
   XALTO v2 — styles.css
   Cormorant Garamond as primary editorial font
   ═══════════════════════════════════════════════════ */

:root {
  --navy:        #003366;
  --navy-deep:   #001a33;
  --navy-mid:    #002d5a;
  --navy-light:  #004080;
  --gold:        #F2B705;
  --gold-light:  #F7CC4A;
  --gold-dark:   #C99004;
  --cream:       #F0F4FF;
  --cream-2:     #C5D5EE;
  --cream-mute:  #7A96BC;
  --bg:          #001428;
  --bg-card:     #002040;
  --bg-card-2:   #00294d;
  --line:        rgba(242,183,5,0.16);
  --line-light:  rgba(240,244,255,0.1);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --nav-h:    72px;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
}

.hidden { display: none !important; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   SPLASH
══════════════════════════════════════ */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease-out), clip-path 0.9s var(--ease-out);
  animation: splashSafety 0.01s 5.5s forwards;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }

.splash-center {
  display: flex; flex-direction: column; align-items: center;
}

/* ── Splash with real logo PNG + SVG arrow overlay ── */
.splash-logo-wrap {
  position: relative;
  width: clamp(300px, 62vw, 480px);
}

/* The real logo PNG: hidden initially, fades in after arrow draws */
.splash-logo-png {
  display: block; width: 100%; height: auto;
  opacity: 0;
  animation: fadeInLogo 0.7s 2.25s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes fadeInLogo { to { opacity: 1; } }

/* SVG overlay: positioned exactly on top of the PNG */
.splash-arrow-svg {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* Arrow body: coordenadas derivadas de escaneo pixel-a-pixel del PNG (597×256)
   Longitud aproximada del path: ~380px en el viewBox → dasharray seguro = 420 */
.splash-arrow-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawArrow 2s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes drawArrow { to { stroke-dashoffset: 0; } }

/* Arrowhead: aparece con spring cuando el trazo termina.
   transform-origin = centroide del polígono (308+254+306)/3 = 289, (20+36+36)/3 = 30 */
.splash-arrow-head {
  opacity: 0;
  transform-origin: 289px 30px;
  transform: scale(0.15);
  animation: popHead 0.45s 2.22s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes popHead {
  to { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.nav-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-header.scrolled {
  background: rgba(0,20,40,0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  max-width: 1200px; margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-nav {
  width: 148px; height: auto;
  /* PNG is transparent-bg with white+gold, works on dark nav */
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.07em;
  color: var(--cream-2); position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-link.nav-cta {
  border: 1px solid var(--gold); color: var(--gold);
  padding: 0.4rem 1rem; border-radius: 2px; letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}
.nav-link.nav-cta:hover { background: var(--gold); color: var(--navy-deep); }
.nav-link.nav-cta::after { display: none; }

/* Language toggle */
.lang-item { display: flex; align-items: center; }
.lang-toggle { display: flex; align-items: center; gap: 0.3rem; }
.lang-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--cream-mute); padding: 0.25rem 0.4rem; border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn.is-active { color: var(--gold); background: rgba(242,183,5,0.1); }
.lang-btn:hover:not(.is-active) { color: var(--cream); }
.lang-sep { font-family: var(--font-ui); font-size: 0.65rem; color: var(--cream-mute); opacity: 0.4; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 5rem;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 65% 35%, rgba(0,64,128,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 75%, rgba(242,183,5,0.07) 0%, transparent 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--bg) 55%, #000f1e 100%);
}

.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin-inline: auto;
  padding-inline: clamp(1.2rem, 5vw, 3rem);
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 600; line-height: 1.08;
  color: var(--cream); max-width: 22ch;
  margin-bottom: 2rem; text-wrap: balance;
  transition-delay: 0.2s;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--cream-2); max-width: 58ch;
  margin-bottom: 2.5rem; line-height: 1.8;
  transition-delay: 0.3s;
}
.hero-subtitle strong { color: var(--cream); font-weight: 600; }

/* Slider */
.hero-slider-wrap { margin-bottom: 2.5rem; transition-delay: 0.4s; }
.slider-track { position: relative; height: 2.4rem; overflow: hidden; margin-bottom: 0.8rem; }
.slider-item {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-style: italic; font-weight: 500;
  color: var(--gold-light); white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.slider-item.active { opacity: 1; transform: none; }
.slider-item.leaving { opacity: 0; transform: translateY(-100%); }

.slider-remate {
  font-family: var(--font-ui);
  font-size: 0.875rem; color: var(--cream-mute); letter-spacing: 0.02em;
}

.hero-actions { transition-delay: 0.5s; }


/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-ui);
  padding: 0.85rem 2rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 4px 24px rgba(242,183,5,0.25);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 8px 32px rgba(242,183,5,0.35); }
.btn-large { padding: 1rem 2.5rem; font-size: 0.9rem; }

/* ══════════════════════════════════════
   SHARED SECTION ELEMENTS
══════════════════════════════════════ */
.section-kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.section-rule {
  width: 3rem; height: 1px; background: var(--gold); margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════ */
.section-qs {
  padding-block: clamp(4rem,10vw,8rem);
  background: var(--navy-deep); position: relative;
}
.section-qs::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px; background:var(--line);
}

.qs-header { margin-bottom: 0.5rem; }

.qs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,6vw,5rem); align-items: start;
}

.qs-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem,3.5vw,3.1rem);
  font-weight: 600; line-height: 1.18; color: var(--cream);
  margin-bottom: 2rem; text-wrap: balance;
}
.qs-title em { font-style: italic; color: var(--gold); }

.qs-body {
  font-family: var(--font-serif);
  color: var(--cream-2); margin-bottom: 1.3rem;
  font-size: clamp(1rem,1.5vw,1.1rem); line-height: 1.85;
}
.qs-body strong { color: var(--cream); font-weight: 600; }

.values-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem,2vw,1.6rem); font-weight: 600;
  color: var(--cream); margin-bottom: 1.5rem; letter-spacing: 0.01em;
}

.values-grid { display: flex; flex-direction: column; gap: 1.2rem; }

.value-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.4rem 1.4rem 1.4rem 1.1rem;
  display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto;
  gap: 0.15rem 0.9rem; align-items: start;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  border-color: rgba(242,183,5,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.value-icon { grid-row: 1/3; width: 42px; height: 42px; display:flex; align-items:center; justify-content:center; margin-top:3px; }
.value-icon svg { width:38px; height:38px; }

.value-title {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em;
}
.value-desc {
  font-family: var(--font-serif);
  color: var(--cream-mute); font-size: 0.95rem; line-height: 1.7;
}

/* ══════════════════════════════════════
   SERVICIOS
══════════════════════════════════════ */
.section-servicios {
  padding-block: clamp(4rem,10vw,8rem);
  background: var(--bg); position: relative;
}
.section-servicios::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px; background:var(--line);
}

.servicios-header { margin-bottom: 1rem; }

.servicios-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem,2vw,1.45rem);
  color: var(--cream-2); max-width: 66ch; line-height: 1.65; margin-bottom: 3rem;
}
.servicios-intro em { font-style: italic; color: var(--gold); }

/* Linea wrapper */
.linea-wrap {
  margin-bottom: clamp(2.5rem,5vw,4.5rem);
  padding-bottom: clamp(2.5rem,5vw,4.5rem);
  border-bottom: 1px solid var(--line);
}
.linea-wrap:last-of-type { border-bottom: none; }

/* Linea hero image */
.linea-hero-img {
  position: relative; height: clamp(160px,22vw,240px);
  border-radius: 6px; overflow: hidden; margin-bottom: 0;
}
.linea-hero-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
.linea-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,20,40,0.93) 38%, rgba(0,34,68,0.78) 70%, rgba(0,20,40,0.6) 100%);
}
.linea-hero-content {
  position: relative; z-index: 1;
  padding: clamp(1.2rem,3vw,2rem);
  display: flex; align-items: center; gap: 1.5rem; height: 100%;
}

.linea-badge {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--gold); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold);
}

.linea-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 700;
  color: var(--cream); line-height: 1.1; margin-bottom: 0.3rem;
}
.linea-tagline {
  font-family: var(--font-serif);
  font-style: italic; color: var(--gold);
  font-size: clamp(0.95rem,1.5vw,1.1rem);
}

/* Services grid */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,300px),1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  margin-top: 0;
}

.servicio-card {
  background: var(--bg-card); padding: 1.75rem;
  position: relative; transition: background 0.3s ease; overflow: hidden;
}
.servicio-card::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:0;
  background: linear-gradient(90deg,rgba(242,183,5,0.07),transparent);
  transition: width 0.4s var(--ease-out);
}
.servicio-card:hover::before { width: 100%; }
.servicio-card:hover { background: var(--bg-card-2); }
.servicio-card--highlight { border-left: 2px solid var(--gold); }

.servicio-num {
  font-family: var(--font-ui);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 0.7rem; opacity: 0.65;
}
.servicio-name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem,1.8vw,1.3rem); font-weight: 700;
  color: var(--cream); margin-bottom: 0.75rem; line-height: 1.3;
  display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.tag-cfo {
  font-family: var(--font-ui);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 0.1rem 0.4rem; border-radius: 2px; vertical-align: middle;
}
.servicio-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--cream-mute); line-height: 1.75;
}

/* ══════════════════════════════════════
   PLANES
══════════════════════════════════════ */
.planes-section { padding-top: clamp(2.5rem,5vw,4rem); }
.planes-header { margin-bottom: 3rem; }

.planes-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem,3.5vw,3rem); font-weight: 600;
  color: var(--cream); line-height: 1.2; margin-bottom: 1rem; text-wrap: balance;
}
.planes-title em { font-style: italic; color: var(--gold); }

.planes-sub {
  font-family: var(--font-serif);
  color: var(--cream-2); font-size: clamp(1rem,1.5vw,1.1rem);
  line-height: 1.75; max-width: 60ch;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,340px),1fr));
  gap: 1.4rem; margin-bottom: 3rem;
}

.plan-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px;
  padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative;
  overflow: hidden;
}
.plan-card::after {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 15%,rgba(242,183,5,0.04) 0%,transparent 60%);
  pointer-events: none;
}
.plan-card:hover {
  border-color: rgba(242,183,5,0.38);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.plan-card--featured {
  border-color: rgba(242,183,5,0.35);
  background: linear-gradient(135deg,var(--bg-card-2),var(--navy-deep));
}

/* Plan Total — full width, restructured */
.plan-card--total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg,var(--navy-mid),var(--navy-deep));
  border-color: rgba(242,183,5,0.45);
  flex-direction: column; gap: 1.5rem;
}
.total-header {
  display: flex; align-items: flex-start; gap: 1.2rem;
}
.total-header .plan-icon { flex-shrink: 0; }
.total-lineas {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem;
}
.total-linea { display: flex; flex-direction: column; gap: 0.3rem; }

.plan-icon { width: 46px; height: 46px; flex-shrink: 0; }
.plan-icon svg { width: 100%; height: 100%; }

.plan-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold);
  padding: 0.18rem 0.7rem; border-radius: 20px; width: fit-content;
}
.plan-badge--gold { background: linear-gradient(90deg,var(--gold),var(--gold-light)); }

.plan-name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem,2vw,1.65rem); font-weight: 700;
  color: var(--cream); line-height: 1.25;
}
.plan-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--cream-mute); line-height: 1.7;
}

.plan-tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.plan-tab {
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.28rem 0.75rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--cream-mute); background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.plan-tab.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.plan-tab:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

.plan-modalities { display: flex; flex-direction: column; gap: 1rem; }
.plan-mod strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.4rem;
}
.plan-divider { height: 1px; background: var(--line); }

.plan-esential {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream-2); margin-bottom: 0.35rem; margin-top: 0.6rem;
}
.plan-esential:first-child { margin-top: 0; }
.plan-optional {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem; margin-top: 0.6rem;
}

.plan-list { display: flex; flex-direction: column; gap: 0.22rem; }
.plan-list li {
  font-family: var(--font-serif);
  font-size: 0.88rem; color: var(--cream-mute); padding-left: 0.9rem; position: relative; line-height: 1.5;
}
.plan-list li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem;
}
.plan-list--opt li::before { color: rgba(242,183,5,0.45); }

.plan-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--gold); border: 1px solid rgba(242,183,5,0.3);
  padding: 0.18rem 0.55rem; border-radius: 2px; margin-top: 0.4rem;
}

.planes-cta { text-align: center; padding-top: 2rem; }

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
.section-contacto {
  padding-block: clamp(4rem,10vw,8rem);
  background: var(--navy-deep); position: relative;
}
.section-contacto::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px; background:var(--line);
}
.contacto-header { margin-bottom: 3rem; }

.contacto-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem,4vw,4rem); align-items: start;
}

/* Form block */
.form-block {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 8px; padding: clamp(1.5rem,3vw,2.5rem);
}

.form-block-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem,2.8vw,2.1rem); font-weight: 700;
  color: var(--cream); line-height: 1.25; margin-bottom: 0.6rem;
}
.form-block-title em { font-style: italic; color: var(--gold); }

.form-block-sub {
  font-family: var(--font-serif);
  font-size: 1rem; color: var(--cream-mute); margin-bottom: 1.8rem; line-height: 1.7;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field label {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--cream-2);
}
.req { color: var(--gold); }

.form-field input,
.form-field textarea {
  background: rgba(0,20,40,0.7); border: 1px solid var(--line-light);
  border-radius: 3px; padding: 0.7rem 0.9rem;
  color: var(--cream); font-family: var(--font-serif); font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s; outline: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--cream-mute); opacity: 0.55; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(242,183,5,0.5);
  box-shadow: 0 0 0 3px rgba(242,183,5,0.08);
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* Radio */
.radio-group { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.2rem; }
.radio-label {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--cream-2); line-height: 1.4;
}
.radio-label input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-custom {
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--cream-mute);
  flex-shrink: 0; position: relative; transition: border-color 0.2s;
}
.radio-label input:checked + .radio-custom { border-color: var(--gold); }
.radio-label input:checked + .radio-custom::after {
  content:''; position:absolute; inset:3px; background:var(--gold); border-radius:50%;
}

/* Checkbox */
.checkbox-label {
  display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer;
  font-family: var(--font-serif);
  font-size: 0.9rem; color: var(--cream-mute); line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width:0; height:0; }
.checkbox-custom {
  width: 17px; height: 17px; border: 1.5px solid var(--cream-mute);
  border-radius: 2px; flex-shrink: 0; margin-top: 2px;
  position: relative; transition: border-color 0.2s, background 0.2s;
}
.checkbox-label input:checked + .checkbox-custom {
  border-color: var(--gold); background: var(--gold);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content:''; position:absolute; left:3px; top:0px; width:6px; height:10px;
  border: 2px solid var(--navy-deep); border-top:none; border-left:none;
  transform: rotate(45deg);
}

.form-legal {
  font-family: var(--font-serif);
  font-size: 0.85rem; color: var(--cream-mute); line-height: 1.65;
}
.form-legal-link {
  color: var(--gold); text-decoration: underline;
  text-decoration-color: rgba(242,183,5,0.4);
}

.form-check { margin-top: 0.3rem; }

.btn-form {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.9rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px; margin-top: 0.4rem;
  background: var(--navy-mid); color: var(--cream);
  border: 1px solid rgba(240,244,255,0.2);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-form:hover { background: var(--navy-light); border-color: rgba(240,244,255,0.35); transform: translateY(-1px); }
.btn-form--gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-form--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-icon { transition: transform 0.25s; }
.btn-form:hover .btn-icon { transform: translateX(4px); }

.form-success {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem; color: var(--gold); padding-top: 0.4rem; min-height: 1.5rem;
}

/* ── Contact info column ── */
.contacto-info {
  position: relative; display: flex; flex-direction: column; gap: 2rem;
  padding-top: 1rem;
}
.contacto-logo-deco {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.contacto-logo-deco img {
  width: 100%; opacity: 0.08;
  filter: blur(1px);
}

.info-cards {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem;
}
.info-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(0,32,64,0.6); border: 1px solid var(--line);
  border-radius: 6px; padding: 1rem 1.2rem;
}
.info-icon { width: 36px; height: 36px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-icon svg { width: 22px; height: 22px; }
.info-label {
  font-family: var(--font-ui);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.15rem;
}
.info-value {
  font-family: var(--font-serif);
  font-size: 1rem; color: var(--cream); line-height: 1.3;
}
.info-link { transition: color 0.2s; }
.info-link:hover { color: var(--gold); }

.contacto-quote {
  position: relative; z-index: 1;
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  background: rgba(242,183,5,0.05);
}
.quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 4rem; line-height: 0.5; color: var(--gold);
  opacity: 0.4; margin-bottom: 0.6rem;
}
.contacto-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem,2vw,1.6rem); font-style: italic; font-weight: 500;
  color: var(--cream); line-height: 1.4;
}

.wa-direct-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #25D366; color: white;
  padding: 0.8rem 1.4rem; border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  width: fit-content;
}
.wa-direct-btn:hover {
  background: #20BA5A; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

/* ══════════════════════════════════════
   FOOTER — redesigned
══════════════════════════════════════ */
.footer { background: #000f1e; }

.footer-top {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem,6vw,5rem);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-logo-img { width: 210px; height: auto; }

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic; color: var(--gold);
  font-size: 1.05rem; line-height: 1.4;
}

.footer-city {
  font-family: var(--font-ui);
  font-size: 0.8rem; color: var(--cream-mute); letter-spacing: 0.04em;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}

.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact-list span,
.footer-contact-list a {
  font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--cream-mute); line-height: 1.4;
  transition: color 0.2s;
}
.footer-contact-list a:hover { color: var(--gold); }

.footer-nav-list,
.footer-services-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav-list a,
.footer-services-list a {
  font-family: var(--font-serif);
  font-size: 0.95rem; color: var(--cream-mute);
  transition: color 0.2s; line-height: 1.4;
  position: relative; padding-left: 0;
}
.footer-nav-list a:hover,
.footer-services-list a:hover { color: var(--gold); padding-left: 6px; }
.footer-nav-list a,
.footer-services-list a { transition: color 0.2s, padding-left 0.2s; }

.footer-bottom {
  border-top: 1px solid rgba(242,183,5,0.1);
  padding-block: 1.4rem;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.72rem; color: var(--cream-mute); opacity: 0.55; letter-spacing: 0.04em;
}

/* ══════════════════════════════════════
   WHATSAPP BUTTON
══════════════════════════════════════ */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 30px; height: 30px; }

.whatsapp-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--navy-deep); color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.75rem; font-weight: 500; white-space: nowrap;
  padding: 0.38rem 0.75rem; border-radius: 3px; border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1080px) {
  .footer-top-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
  .total-lineas { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .qs-grid { grid-template-columns: 1fr; }
  .values-grid { display: grid; grid-template-columns: repeat(3,1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(0,14,28,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start;
    padding: 2rem clamp(1.2rem,5vw,3rem); gap: 1.2rem;
    transform: translateY(-110%); transition: transform 0.4s var(--ease-out);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-link::after { display: none; }
  .nav-link.nav-cta { border: none; padding: 0; }
  .lang-item { margin-top: 0.5rem; }

  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .total-lineas { grid-template-columns: 1fr; }
  .footer-top-inner { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.2rem,8vw,2.8rem); }
  .hero-deco { display: none; }
  .linea-hero-img { height: 140px; }
  .total-lineas { grid-template-columns: 1fr; }
}

/* Reduced motion — only intrusive effects */
@media (prefers-reduced-motion: reduce) {
  .splash-arrow-path { animation: none; stroke-dashoffset: 0; }
  .splash-arrow-head { animation: none; opacity: 1; transform: none; }
  .splash-x, .splash-text, .splash-tagline-txt { animation: none; opacity: 1; }
  .hero-deco { animation: none; }
}
