/* ==========================================================================
   Atempo Events & Design · Organización de eventos
   Hoja de estilos principal
   ========================================================================== */

:root {
  /* Color */
  /* Blancos y beige */
  --bg: #faf8f4;
  --bg-2: #efe8dc;
  --paper: #ffffff;
  /* Negros */
  --ink: #121110;
  --ink-2: #4d4741;
  --ink-3: #7a7268;
  --line: rgba(18, 17, 16, .13);
  --night: #0e0d0c;
  --night-2: #191715;
  --on-night: #f6f1e7;
  --on-night-2: rgba(246, 241, 231, .68);
  --line-night: rgba(246, 241, 231, .15);
  /* Dorados */
  --accent: #8c6a32;      /* dorado oscuro: textos sobre fondo claro */
  --gold: #c9a961;        /* dorado: botones y textos sobre fondo oscuro */
  --gold-2: #dcc189;      /* dorado claro: hover */
  --gold-soft: #efe4cb;

  /* Tipografía */
  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(84px, 11vw, 160px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.eyebrow--light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -.015em;
}
.section-title em, .hero__title em, .studio__statement em, .cta-band__title em, .form-success h3 em { color: var(--accent); }

.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__text { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .section-head__text { justify-self: center; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.75em;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 1;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-bd: var(--gold); }
.btn--primary:hover { --btn-bg: var(--gold-2); --btn-bd: var(--gold-2); }
.btn--light { --btn-bg: var(--on-night); --btn-fg: var(--ink); --btn-bd: var(--on-night); }
.btn--light:hover { --btn-bg: #fff; --btn-bd: #fff; }
.btn--ghost-light { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn--ghost-light:hover { --btn-bd: #fff; background: rgba(255,255,255,.14); }
.btn--outline { --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
.btn--small { padding: .8em 1.3em; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid currentColor; padding-bottom: .25em;
  transition: color .3s, gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: .9em; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.site-header.is-scrolled {
  background: rgba(250, 248, 244, .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__text { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; letter-spacing: -.01em; }
.logo__text small { display: block; margin-top: .3em; font-family: var(--font-body); font-size: .5rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; opacity: .85; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.main-nav a { position: relative; font-size: .92rem; font-weight: 500; padding-block: .4rem; opacity: .92; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.btn--header { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--header:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.site-header.is-scrolled .btn--header { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
.site-header.is-scrolled .btn--header:hover { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--ink); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 120; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--night); color: var(--on-night);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu li { overflow: hidden; }
.mobile-menu nav a {
  display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.2;
  transform: translateY(100%); transition: transform .6s var(--ease-out);
}
.menu-open .mobile-menu nav a { transform: none; }
.mobile-menu li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu li:nth-child(7) a { transition-delay: .24s; }
.mobile-menu__foot { display: grid; gap: 1rem; margin-top: 2rem; }
.mobile-menu__mail { color: var(--on-night-2); text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--night);
}
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img, .hero__slide.is-leaving img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 12, 10, .55) 0%, rgba(15, 12, 10, .05) 28%, rgba(15, 12, 10, .1) 50%, rgba(15, 12, 10, .78) 100%),
    linear-gradient(90deg, rgba(15, 12, 10, .45) 0%, rgba(15, 12, 10, 0) 60%);
}
.hero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(96px, 12vh, 140px); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 9.6vw, 9.4rem);
  line-height: .92; letter-spacing: -.025em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__title em { color: var(--gold); }
.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.hero__lead { max-width: 44ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: rgba(255,255,255,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.hero__caption { display: inline-flex; align-items: center; gap: .7em; overflow: hidden; }
.hero__caption::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__caption-text { display: inline-block; transition: transform .6s var(--ease), opacity .6s; }
.hero__caption-text.is-out { transform: translateY(100%); opacity: 0; }
.hero__progress { display: flex; gap: 8px; }
.hero__progress button { width: 48px; height: 18px; display: flex; align-items: center; }
.hero__progress span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; border-radius: 2px; }
.hero__progress span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress .is-active span::after { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero__progress .is-done span::after { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 3px; animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding-block: clamp(18px, 2.4vw, 28px); }
.marquee__track { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.6rem); width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-style: italic; line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: clamp(.9rem, 1.4vw, 1.2rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Estudio ---------- */
.studio__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.studio__statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 2.2rem;
  text-wrap: pretty;
}
.studio__media { position: relative; padding: 0 0 18% 12%; }
.studio__img { overflow: hidden; border-radius: var(--radius); }
.studio__img img { width: 100%; height: 100%; object-fit: cover; }
.studio__img--a { aspect-ratio: 4 / 5; }
.studio__img--b { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 8px solid var(--bg); border-radius: calc(var(--radius) + 6px); }
.studio__badge { position: absolute; right: -34px; top: -44px; width: 136px; height: 136px; padding: 6px; border-radius: 50%; background: var(--bg); color: var(--ink); }
.studio__badge > svg:first-child { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.studio__badge text { font-family: var(--font-body); font-size: 10.6px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.studio__badge-star { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(72px, 9vw, 130px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.value__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 1.2rem; }
.value h3 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; margin-bottom: .6rem; }
.value p { color: var(--ink-2); font-size: .97rem; }


/* ---------- Servicios ---------- */
.services { background: var(--paper); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.service-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; color: #fff; isolation: isolate; background: var(--night);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,12,10,.25) 0%, rgba(15,12,10,0) 30%, rgba(15,12,10,.25) 52%, rgba(15,12,10,.86) 100%);
  transition: background .6s var(--ease);
}
.service-card:hover img { transform: scale(1.06); }
.service-card:hover::before { background: linear-gradient(180deg, rgba(15,12,10,.3) 0%, rgba(15,12,10,.2) 30%, rgba(15,12,10,.5) 50%, rgba(15,12,10,.92) 100%); }
.service-card__body { position: absolute; inset: auto 0 0; padding: clamp(22px, 2.4vw, 32px); }
.service-card__num { position: absolute; top: 24px; left: 26px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; opacity: .9; }
.service-card h3 { font-family: var(--font-display); font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1; margin-bottom: .7rem; }
.service-card p { font-size: .95rem; color: rgba(255,255,255,.84); max-width: 34ch; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.tags li { font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: .42em .9em; border-radius: 99px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.service-card__cta {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  transition: background .4s var(--ease), color .4s, transform .5s var(--ease);
}
.service-card:hover .service-card__cta { background: #fff; color: var(--ink); transform: rotate(45deg); }
@media (hover: none), (max-width: 899px) {
  .service-card::before { background: linear-gradient(180deg, rgba(15,12,10,.3) 0%, rgba(15,12,10,.05) 22%, rgba(15,12,10,.62) 52%, rgba(15,12,10,.94) 100%); }
}
@media (hover: hover) and (min-width: 900px) {
  .service-card p, .service-card .tags { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); max-height: 0; }
  .service-card:hover p, .service-card:hover .tags, .service-card:focus-visible p, .service-card:focus-visible .tags { opacity: 1; transform: none; max-height: 200px; }
  .service-card .tags { transition-delay: .06s; }
}

/* ---------- Modalidades ---------- */
.formats { background: var(--bg-2); }
.formats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.format-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.format-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(18,17,16,.3); }
.format-card__kicker { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.format-card h3 { font-family: var(--font-display); font-size: clamp(2.1rem, 3vw, 2.7rem); line-height: 1; margin: .8rem 0 1rem; }
.format-card__desc { color: var(--ink-2); font-size: .98rem; }
.checklist { display: grid; gap: .75rem; margin: 1.8rem 0 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); flex: 1; align-content: start; }
.checklist li { position: relative; padding-left: 1.9rem; font-size: .96rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c6a32' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.format-card .btn { align-self: flex-start; }
.format-card--featured { background: var(--night); color: var(--on-night); border-color: var(--night); }
.format-card--featured .format-card__kicker { color: var(--gold); }
.format-card--featured .format-card__desc { color: var(--on-night-2); }
.format-card--featured .checklist { border-color: var(--line-night); }
.format-card--featured .checklist li::before { background-color: rgba(201,169,97,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a961' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.format-card__badge {
  position: absolute; top: -13px; right: 24px;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .5em 1em; border-radius: 99px; background: var(--gold); color: var(--ink);
}
.formats__note { text-align: center; color: var(--ink-2); margin-top: 2.4rem; font-size: .95rem; }

/* ---------- Proceso ---------- */
.process__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 120px); }
.process__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process__intro { color: var(--ink-2); max-width: 40ch; margin-top: 1.4rem; }
.process__img { margin-top: 2.4rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 8 / 7; max-width: 520px; }
.process__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem clamp(20px, 3vw, 40px); padding-block: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.6rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  transition: color .6s var(--ease);
  min-width: 1.4em;
}
.step:hover .step__num, .step.is-visible .step__num { color: var(--accent); }
.step__tag { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.step h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem); line-height: 1.05; margin-bottom: .6rem; }
.step p:last-child { color: var(--ink-2); max-width: 52ch; }

/* ---------- Banda CTA ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding-block: clamp(110px, 16vw, 220px); overflow: hidden; isolation: isolate; background: var(--night); }
.cta-band__bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(15,12,10,.62), rgba(15,12,10,.8)); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7.4rem); line-height: .95; letter-spacing: -.02em; max-width: 12ch; }
.cta-band__title em { color: var(--gold); }
.cta-band__text { margin-top: 1.4rem; color: rgba(255,255,255,.84); max-width: 44ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3vw, 40px); }
.filter {
  padding: .7em 1.25em; border-radius: 99px; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500;
  transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.masonry { columns: 3; column-gap: clamp(12px, 1.4vw, 18px); }
.tile { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 18px); position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tile button { display: block; width: 100%; cursor: zoom-in; }
.tile img { width: 100%; transition: transform 1s var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: auto 0 0; padding: 2.4rem 1.1rem 1rem; color: #fff; pointer-events: none;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1;
  background: linear-gradient(180deg, transparent, rgba(15,12,10,.75));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.tile figcaption span { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }
.tile.is-entering { animation: tilein .6s var(--ease-out) both; }
@keyframes tilein { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 10, 8, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; animation: fadein .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 64px 0 32px; height: 100%; justify-content: center; min-width: 0; }
.lightbox img { max-height: calc(100dvh - 160px); max-width: 100%; width: auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { font-family: var(--font-display); font-size: 1.4rem; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.lightbox__nav { width: 52px; height: 52px; margin: 0 clamp(8px, 2vw, 28px); display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.12); }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Cobertura ---------- */
.coverage { background: var(--bg-2); padding-bottom: clamp(70px, 8vw, 110px); overflow: hidden; }
.coverage__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.coverage__text > p:not(.eyebrow) { color: var(--ink-2); margin-top: 1.4rem; max-width: 50ch; }
.regions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2rem; }
.regions li { font-size: .82rem; font-weight: 500; padding: .45em .95em; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.coverage__note { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin-top: 1.6rem !important; }
.coverage__note .i { color: var(--accent); margin-top: .2em; }

.map { width: 100%; height: auto; overflow: visible; }
.map__dots { fill: none; stroke: var(--ink); stroke-opacity: .3; stroke-width: 5.4; stroke-linecap: round; }
.map__inset { fill: none; stroke: var(--ink); stroke-opacity: .16; stroke-dasharray: 4 5; }
.map__inset-label { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.map-pin__dot { fill: var(--accent); stroke: var(--bg-2); stroke-width: 2; }
.map-pin:not(.map-pin--main) .map-pin__dot { fill: var(--ink-2); stroke-width: 1.5; }
.map-pin__pulse { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 3s var(--ease) infinite; animation-delay: var(--d, 0s); }
.map-pin:not(.map-pin--main) .map-pin__pulse { display: none; }
.map-pin text { font-family: var(--font-display); font-size: 21px; fill: var(--ink); paint-order: stroke; stroke: var(--bg-2); stroke-width: 5px; stroke-linejoin: round; }
@keyframes pulse { 0% { opacity: .5; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(4); } }

.destinations { margin-top: clamp(64px, 8vw, 110px); }
.destinations__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.destinations__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.destinations__nav { display: flex; gap: 8px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.destinations__track {
  display: flex; gap: clamp(12px, 1.4vw, 18px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.destinations__track::-webkit-scrollbar { display: none; }
.dest { position: relative; flex: 0 0 clamp(230px, 24vw, 310px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; color: #fff; isolation: isolate; background: var(--night); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.dest::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,12,10,0) 45%, rgba(15,12,10,.8)); }
.dest:hover img { transform: scale(1.05); }
.dest div { position: absolute; inset: auto 0 0; padding: 1.4rem; }
.dest h4 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.dest p { font-size: .88rem; color: rgba(255,255,255,.82); margin-top: .4rem; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__aside > p:last-child { color: var(--ink-2); margin-top: 1.4rem; }
.faq__aside a { color: var(--accent); border-bottom: 1px solid currentColor; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2;
  transition: color .3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.accordion summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.accordion details[open] summary::after { transform: rotate(135deg); border-color: var(--accent); color: var(--accent); }
.accordion__body { overflow: hidden; }
.accordion__body p { color: var(--ink-2); padding-bottom: 1.6rem; max-width: 62ch; }

/* ---------- Contacto ---------- */
.contact { background: var(--night); color: var(--on-night); }
.contact .section-title em { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__info { position: sticky; top: calc(var(--header-h) + 32px); }
.contact__lead { color: var(--on-night-2); margin-top: 1.4rem; max-width: 44ch; }
.contact__list { display: grid; gap: 1.2rem; margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line-night); }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list .i { width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 1px solid var(--line-night); color: var(--gold); }
.contact__list span { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); }
.contact__list a { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; transition: color .3s; word-break: break-word; }
.contact__list a:hover { color: var(--gold); }
.contact__hours { margin-top: 2rem; font-size: .9rem; color: var(--on-night-2); }

.contact__form-wrap { background: var(--paper); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.4vw, 48px); }
.form { display: grid; gap: 1.3rem; }
.form__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .6rem; padding: 0; }
.form abbr { text-decoration: none; color: var(--accent); }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 2.6rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d4741' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(140, 106, 50, .16); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .62em 1.1em; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: .15em; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--accent); border-bottom: 1px solid currentColor; }
.form__error { display: none; color: #b42318; font-size: .85rem; margin-top: .45rem; }
.has-error .form__error, .form__error.is-visible { display: block; }
.has-error input, .has-error select, .has-error textarea { border-color: #d92d20; }
.has-error .chip span { border-color: rgba(217,45,32,.5); }
.form__legal { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }
.form__legal a { text-decoration: underline; }
.form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }

.form-success { text-align: center; padding: clamp(24px, 5vw, 64px) 0; }
.form-success:focus { outline: none; }
.form-success__star { width: 46px; height: 46px; margin: 0 auto 1.6rem; color: var(--accent); animation: spin 8s linear infinite; }
.form-success h3 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; }
.form-success h3 em { display: block; }
.form-success__text { color: var(--ink-2); margin: 1.2rem auto 2rem; max-width: 42ch; }
.form-success__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-night); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer__brand p { color: var(--on-night-2); margin-top: 1.2rem; max-width: 34ch; font-size: .95rem; }
.socials { display: flex; gap: 8px; margin-top: 1.6rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-night); display: grid; place-items: center; transition: background .3s, color .3s; }
.socials a:hover { background: var(--on-night); color: var(--ink); }
.footer__col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: .6rem; font-size: .95rem; color: var(--on-night-2); }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--on-night); }
.footer__col .btn { margin-top: 1.6rem; }
.footer__giant {
  font-family: var(--font-display); font-size: clamp(6rem, 25vw, 24rem); line-height: .8; letter-spacing: -.04em;
  text-align: center; margin-top: clamp(48px, 7vw, 96px);
  color: transparent; -webkit-text-stroke: 1px rgba(201,169,97,.28);
  user-select: none; white-space: nowrap;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem 2rem; border-top: 1px solid var(--line-night); margin-top: clamp(24px, 3vw, 40px); font-size: .85rem; color: var(--on-night-2); }
.footer__bottom ul { display: flex; gap: 1.4rem; }
.footer__bottom a:hover { color: var(--on-night); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 56px; padding: 0 16px; border-radius: 99px;
  background: #1f7a4d; color: #fff;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.45);
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s, background .3s;
}
.wa-float .i { width: 24px; height: 24px; }
.wa-float__label { font-weight: 600; font-size: .9rem; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
.wa-float:hover .wa-float__label { max-width: 120px; }
.wa-float:hover { background: #18663f; }
.wa-float.is-visible { transform: none; opacity: 1; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 1.1rem; }
  .main-nav a { font-size: .86rem; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .main-nav, .btn--header { display: none; }
  .menu-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__text { justify-self: start; }
  .studio__grid, .coverage__grid, .process__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .studio__media { max-width: 560px; }
  .values { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .formats__grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .format-card--featured { order: -1; }
  .process__sticky, .faq__aside, .contact__info { position: static; }
  .process__img { display: none; }
  .masonry { columns: 2; }
  .coverage__map { max-width: 620px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__content { padding-bottom: 104px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { bottom: 22px; }
  .hero__progress button { width: 22px; }
  .hero__meta { font-size: .68rem; letter-spacing: .1em; }
  .hero__caption { white-space: nowrap; }
  .hero__caption::before { width: 16px; }
  .eyebrow { letter-spacing: .14em; }
  .hero__scroll { display: none; }
  .studio__media { padding: 0 0 22% 10%; }
  .studio__badge { width: 104px; height: 104px; right: -6px; top: -26px; }
  .values { grid-template-columns: 1fr; gap: 2.2rem; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 4 / 4.6; }
  .step { grid-template-columns: 1fr; gap: .8rem; }
  .masonry { column-gap: 10px; }
  .tile { margin-bottom: 10px; }
  .tile figcaption { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { margin-inline: calc(var(--gutter) * -0.5); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; padding-inline: 12px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox img { max-height: calc(100dvh - 220px); }
  .wa-float { height: 52px; padding: 0 14px; }
  .footer__bottom { padding-bottom: 84px; }
  .destinations__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Páginas legales ---------- */
.legal-page .site-header { position: sticky; color: var(--ink); background: rgba(250, 248, 244, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.legal-page .site-header .btn { margin-left: auto; }
.legal { max-width: 780px; padding-block: clamp(56px, 8vw, 110px); }
.legal h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; margin-bottom: 1rem; }
.legal .legal__updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 2.6rem; }
.legal h2 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; margin: 2.6rem 0 .8rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: .6rem; display: grid; gap: .4rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal mark { background: #f6dfb8; color: var(--ink); padding: 0 .25em; border-radius: 4px; }
.legal .legal__note { margin-bottom: 2rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px dashed var(--accent); font-size: .92rem; }
.legal-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; font-size: .88rem; color: var(--ink-3); }
.legal-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: space-between; }
.legal-footer ul { display: flex; gap: 1.4rem; }
.legal-footer a:hover { color: var(--accent); }

/* ---------- Asistente (chat) ---------- */
/* Botones flotantes (WhatsApp + chat) juntos abajo a la derecha */
.float-actions { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 105; display: flex; align-items: center; gap: 10px; }
.float-actions .wa-float, .float-actions .chat-launcher { position: static; }
.float-actions .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; border-radius: 50%; }
.float-actions .wa-float .i { width: 27px; height: 27px; }
.float-actions .wa-float__label { display: none; }
.wa-float:not(.is-visible), .chat-launcher:not(.is-visible) { pointer-events: none; }
.chat-launcher {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 105;
  display: inline-flex; align-items: center; gap: .65rem;
  height: 58px; padding: 0 20px 0 7px; border-radius: 99px;
  background: var(--night); color: var(--on-night);
  border: 1px solid rgba(201, 169, 97, .45);
  box-shadow: 0 16px 38px -14px rgba(0, 0, 0, .55);
  font-weight: 600; font-size: .92rem;
  transform: translateY(120px); opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s, background .3s, padding .4s var(--ease);
}
.chat-launcher.is-visible { transform: none; opacity: 1; }
.chat-launcher:hover { background: var(--night-2); }
.chat-launcher__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.chat-launcher__icon svg { width: 22px; height: 22px; transition: transform .8s var(--ease-out); }
.chat-launcher:hover .chat-launcher__icon svg { transform: scale(1.08); }
.chat-launcher.is-open { padding-right: 7px; }
.chat-launcher.is-open .chat-launcher__label { display: none; }

.chat-panel {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); z-index: 110;
  width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-panel__head { display: flex; align-items: center; gap: .8rem; padding: 14px 14px 14px 16px; background: var(--night); color: var(--on-night); }
.chat-panel__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); }
.chat-panel__avatar { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.chat-panel__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.chat-panel__status { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--on-night-2); }
.chat-panel__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fcf97; }
.chat-panel__close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-night); transition: background .3s; }
.chat-panel__close:hover { background: rgba(255, 255, 255, .1); }

.chat-panel__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; scroll-behavior: smooth; }
.chat-msg { max-width: 86%; padding: .75rem .95rem; font-size: .93rem; line-height: 1.5; border-radius: 16px; animation: chatin .35s var(--ease-out) both; }
.chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: .45rem; }
.chat-msg ul { list-style: disc; padding-left: 1.1rem; display: grid; gap: .2rem; margin-top: .3rem; }
.chat-msg strong { font-weight: 700; }
.chat-msg--bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { align-self: flex-end; background: var(--ink); color: var(--on-night); border-bottom-right-radius: 4px; }
.chat-msg--error { border-style: dashed; border-color: var(--gold); }
.chat-msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .7rem; }
.chat-msg--typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.chat-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.2s infinite ease-in-out; }
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes chatin { from { opacity: 0; transform: translateY(8px); } }

.chat-panel__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-panel__quick:empty { display: none; }
.chat-chip { padding: .5em .9em; border-radius: 99px; border: 1px solid var(--gold); background: var(--paper); font-size: .82rem; font-weight: 500; color: var(--ink); transition: background .25s, color .25s; }
.chat-chip:hover { background: var(--ink); color: var(--on-night); border-color: var(--ink); }

.chat-panel__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-panel__form textarea { flex: 1; resize: none; overflow-y: hidden; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; font-size: .95rem; line-height: 1.4; max-height: 120px; background: #fff; }
.chat-panel__form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 106, 50, .14); }
.chat-panel__send { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); transition: background .3s, transform .3s var(--ease); }
.chat-panel__send:hover { background: var(--gold-2); transform: translateX(2px); }
.chat-panel__send:disabled { opacity: .5; pointer-events: none; }
.chat-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding: 0 14px 10px; background: var(--paper); font-size: .72rem; color: var(--ink-3); }
.chat-panel__foot a { font-weight: 600; color: var(--accent); }
.chat-panel__foot a:hover { text-decoration: underline; }
.chat-panel__foot span { margin-left: auto; }

@media (max-width: 640px) {
  .chat-launcher { height: 54px; padding-right: 16px; }
  .chat-launcher__icon { width: 40px; height: 40px; }
  .chat-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; transform-origin: bottom center; }
  .chat-open .float-actions { opacity: 0; pointer-events: none; }
  .float-actions .wa-float { width: 54px; height: 54px; }
  html.chat-open, html.chat-open body { overflow: hidden; }
  .chat-panel__foot span { margin-left: 0; width: 100%; }
}
.has-chat .footer__bottom { padding-bottom: 92px; }
.legal a.btn { text-decoration: none; color: var(--btn-fg); }
