/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #060a12;
  --bg-2:      #0a1120;
  --bg-3:      #101a2c;
  --bg-4:      #16233a;
  --ink:       #eef2f8;
  --ink-soft:  #c6d0de;
  --ink-mute:  #7c8aa0;
  --accent:    #2f8fff;
  --accent-2:  #1c63c9;
  --cyan:      #4fd8e8;
  --line:      rgba(238,242,248,0.10);
  --line-2:    rgba(238,242,248,0.18);
  --danger:    #ff6b6b;
  --ok:        #3ddc97;

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", "Courier New", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
}

@property --mesh-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #06090f; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); display: inline-block; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head em { font-style: italic; color: var(--cyan); }
.section-head p { margin-top: 1rem; color: var(--ink-mute); font-size: 1.02rem; max-width: 56ch; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .5s var(--ease-out), background .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(47,143,255,.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(47,143,255,.85); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(47,143,255,.08); }
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  padding: 1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,10,18,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(6,10,18,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: .65rem;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  position: relative; font-size: .92rem; color: var(--ink-soft); font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(6,9,15,.98);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: var(--gutter);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav-drawer.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-drawer a { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.nav-drawer .btn { align-self: flex-start; margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Hero -------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: 6rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,9,15,.55) 0%, rgba(6,9,15,.72) 45%, var(--bg) 96%);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: screen;
  background:
    conic-gradient(from var(--mesh-angle), transparent 0deg, rgba(47,143,255,.35) 90deg, transparent 180deg, rgba(79,216,232,.3) 270deg, transparent 360deg);
  filter: blur(70px);
  animation: meshSpin 26s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(3rem, 7vw, 5.5rem); width: 100%; }
.hero-meta {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.3rem;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
.hero-title em { font-style: italic; color: var(--cyan); }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { margin-top: 3.2rem; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem 2rem; max-width: 640px; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4,1fr); } }
.stat-num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink); }
.stat-num span.suffix { color: var(--cyan); }
.stat-label { font-size: .82rem; color: var(--ink-mute); margin-top: .25rem; max-width: 20ch; }

/* Marquee ------------------------------------------------------ */
.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.1rem 0; background: var(--bg-2); }
.marquee { display: flex; width: max-content; gap: 3rem; animation: marqueeMove 32s linear infinite; }
.marquee span { font-family: var(--mono); font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.marquee span em { color: var(--cyan); font-style: normal; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Tabs (equipo / musica switch inside sections) ---------------- */
.pill-tabs { display: inline-flex; gap: .35rem; padding: .3rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-3); }
.pill-tabs button {
  padding: .55rem 1.15rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-mute);
  transition: color .3s, background .3s;
}
.pill-tabs button.is-active { background: var(--accent); color: #fff; }

/* Equipo grid --------------------------------------------------- */
.equipo-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .equipo-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1280px) { .equipo-grid { grid-template-columns: repeat(3,1fr); } }
.equipo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.equipo-card:hover { transform: translateY(-6px); border-color: rgba(47,143,255,.4); box-shadow: 0 24px 50px -22px rgba(47,143,255,.4); }
.equipo-card figure { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.equipo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.equipo-card:hover img { transform: scale(1.06); }
.equipo-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.equipo-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.equipo-card p { font-size: .92rem; color: var(--ink-mute); }
.equipo-card ul { margin-top: .9rem; display: grid; gap: .4rem; }
.equipo-card li { font-size: .84rem; color: var(--ink-soft); display: flex; gap: .5rem; }
.equipo-card li::before { content: "—"; color: var(--cyan); flex: none; }
.equipo-card .btn { margin-top: 1.2rem; }

.equipo-card--soon {
  background: radial-gradient(120% 140% at 20% 0%, rgba(47,143,255,.16), transparent 60%), linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px dashed rgba(79,216,232,.4);
}
.equipo-card--soon:hover { border-color: rgba(79,216,232,.7); }
.equipo-card--soon-figure {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 80% at 50% 40%, rgba(47,143,255,.22), transparent 70%);
  position: relative;
}
.equipo-card--soon-figure::after {
  content: "Próximamente"; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(79,216,232,.4); border-radius: 999px; padding: .3rem .8rem; white-space: nowrap;
}
.equipo-card--soon-logo { width: 96px; height: auto; object-fit: contain; filter: drop-shadow(0 0 24px rgba(47,143,255,.45)); }
.equipo-card--soon:hover img.equipo-card--soon-logo { transform: none; }

/* Paquetes -------------------------------------------------------*/
.paquetes-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .paquetes-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1280px) { .paquetes-grid { grid-template-columns: repeat(3,1fr); } }
.paquete-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 100%);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.paquete-card:hover { transform: translateY(-6px); border-color: rgba(79,216,232,.45); }
.paquete-card figure { aspect-ratio: 16/10; overflow: hidden; }
.paquete-card img { width: 100%; height: 100%; object-fit: cover; }
.paquete-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.paquete-body h3 { font-size: 1.25rem; }
.paquete-hours { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.paquete-body p.resumen { font-size: .92rem; color: var(--ink-mute); }
.paquete-includes { display: grid; gap: .38rem; margin-top: .2rem; }
.paquete-includes li { font-size: .84rem; color: var(--ink-soft); display: flex; gap: .5rem; }
.paquete-includes li::before { content: "—"; color: var(--accent); flex: none; }
.paquete-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); }
.paquete-anticipo { font-size: .78rem; color: var(--ink-mute); }
.paquete-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Cotizador ------------------------------------------------------*/
.cotizador { border: 1px solid var(--line); border-radius: 26px; background: var(--bg-3); overflow: hidden; }
.cotizador-head { padding: 1.8rem clamp(1.2rem,4vw,2.6rem) 0; }
.cotizador-modes { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 clamp(1.2rem,4vw,2.6rem) 1.6rem; }
.cotizador-mode-btn {
  flex: 1; min-width: 220px; text-align: left; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color .3s, background .3s;
}
.cotizador-mode-btn strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: .25rem; }
.cotizador-mode-btn span { font-size: .82rem; color: var(--ink-mute); }
.cotizador-mode-btn.is-active { border-color: var(--accent); background: rgba(47,143,255,.1); }

.cotizador-steps { padding: 0 clamp(1.2rem,4vw,2.6rem) 2rem; }
.cotizador-progress { display: flex; gap: .4rem; margin-bottom: 1.8rem; }
.cotizador-progress span { height: 3px; flex: 1; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.cotizador-progress span::after { content: ""; display: block; height: 100%; width: 0%; background: var(--accent); transition: width .4s var(--ease-out); }
.cotizador-progress span.is-done::after, .cotizador-progress span.is-active::after { width: 100%; }

.cot-step { display: none; }
.cot-step.is-active { display: block; animation: fadeUp .5s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cot-step h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.cot-step > p.help { color: var(--ink-mute); font-size: .9rem; margin-bottom: 1.4rem; }

.check-grid { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-grid { grid-template-columns: repeat(2,1fr); } }
.check-card {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer;
  transition: border-color .25s, background .25s;
}
.check-card:hover { border-color: rgba(47,143,255,.5); }
.check-card input { margin-top: .2rem; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check-card.is-radio input { border-radius: 50%; }
.check-card strong { display: block; font-size: .95rem; color: var(--ink); }
.check-card small { font-size: .8rem; color: var(--ink-mute); }
.check-card.is-checked { border-color: var(--accent); background: rgba(47,143,255,.08); }

.field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2,1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; color: var(--ink-mute); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .78rem .9rem; color: var(--ink); font-family: var(--sans); font-size: .95rem;
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }

.cot-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--bg-2); margin-bottom: 1.4rem; }
.cot-summary h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); font-family: var(--mono); margin-bottom: .7rem; }
.cot-summary ul { display: grid; gap: .4rem; }
.cot-summary li { font-size: .9rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 1rem; }
.cot-summary li span:first-child { color: var(--ink-mute); }

.cot-nav { display: flex; justify-content: space-between; margin-top: 1.8rem; gap: .8rem; }

.cot-success { text-align: center; padding: 1.5rem 0; }
.cot-success svg { margin: 0 auto 1.2rem; display: block; }
.cot-success h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.cot-success p { color: var(--ink-mute); max-width: 46ch; margin-inline: auto; }
.cot-success .folio { font-family: var(--mono); color: var(--cyan); margin-top: .8rem; display: inline-block; }

/* Galería --------------------------------------------------------*/
.galeria-grid { columns: 1; gap: .8rem; }
@media (min-width: 640px) { .galeria-grid { columns: 2; } }
@media (min-width: 960px) { .galeria-grid { columns: 3; } }
.galeria-grid figure {
  break-inside: avoid; margin-bottom: .8rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative; cursor: zoom-in;
}
.galeria-grid img { width: 100%; transition: transform .6s var(--ease-out), filter .4s; }
.galeria-grid figure:hover img { transform: scale(1.04); filter: saturate(1.1); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4,6,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}

/* FAQ --------------------------------------------------------------*/
.faq-list { display: grid; gap: .7rem; max-width: 780px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; text-align: left; font-weight: 600; color: var(--ink); font-size: .98rem;
}
.faq-q .plus { flex: none; font-family: var(--mono); color: var(--cyan); transition: transform .3s var(--ease-out); }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--ink-mute); font-size: .92rem; }

/* Asistente IA chat ---------------------------------------------------*/
.chat-launcher {
  position: fixed; right: clamp(1rem,4vw,2rem); bottom: clamp(1rem,4vw,2rem); z-index: 250;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -12px rgba(47,143,255,.7);
  transition: transform .4s var(--ease-out);
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: clamp(.6rem,4vw,2rem); bottom: clamp(5rem,12vw,6.5rem); z-index: 250;
  width: min(380px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.chat-head strong { color: var(--ink); font-family: var(--serif); }
.chat-head span { font-size: .76rem; color: var(--ok); font-family: var(--mono); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.chat-msg { max-width: 86%; padding: .65rem .85rem; border-radius: 12px; font-size: .88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-soft); align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .8rem; }
.chat-suggestions button {
  font-size: .78rem; padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-mute);
}
.chat-form { display: flex; gap: .5rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .65rem 1rem; color: var(--ink); font-size: .88rem; }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }

/* Contacto ---------------------------------------------------------*/
.contacto-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1fr 1fr; } }
.contacto-info dl { display: grid; gap: 1rem; margin-top: 1.4rem; }
.contacto-info dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.contacto-info dd { font-size: 1.02rem; color: var(--ink); }
.social-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; transition: border-color .3s, transform .3s var(--ease-out);
}
.social-row a:hover { border-color: var(--accent); transform: translateY(-3px); }
.social-row svg { width: 19px; height: 19px; }

/* Footer -------------------------------------------------------------*/
footer { border-top: 1px solid var(--line); padding: 2.6rem 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-row small { color: var(--ink-mute); font-size: .82rem; }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--ink); }

/* Splash ---------------------------------------------------------------*/
.splash {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-out), visibility .6s;
}
.splash img { height: 46px; opacity: 0; animation: splashFade 1.4s ease forwards; }
@keyframes splashFade { 0% { opacity: 0; transform: scale(.92); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
.splash.is-hidden { opacity: 0; visibility: hidden; }
html:not(.is-ready) body { overflow: hidden; }

/* Reveal ------------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Tilt ---------------------------------------------------------------*/
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* =============================================================
   8. Responsive helpers already inline above via min-width blocks
   ============================================================= */

/* =============================================================
   9. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}
