/* =============================================================
   PERU INTI TRAVEL — styles.css
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --bg:        #FAF6EC;
  --bg-2:      #F1E7D3;
  --paper:     #FFFFFF;
  --cream:     #FFFDF7;
  --ink:       #1B1B17;
  --ink-soft:  #2B2A24;
  --ink-mute:  #6E6759;

  --red:       #C6272B;
  --red-dark:  #931D20;
  --green:     #1F7A4D;
  --green-dark:#144F32;
  --gold:      #F2B705;
  --gold-dark: #B98600;

  --accent:    var(--red);
  --accent-2:  var(--green);
  --accent-3:  var(--gold);

  --line:      rgba(27, 27, 23, 0.12);
  --line-soft: rgba(27, 27, 23, 0.07);

  --shadow-sm: 0 4px 14px rgba(27,27,23,0.08), 0 1px 3px rgba(27,27,23,0.06);
  --shadow-lg: 0 30px 70px -20px rgba(27,27,23,0.28), 0 12px 30px -12px rgba(198,39,43,0.18);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 84px;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1280px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -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.06; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 960px) { .container { padding-inline: 2.5rem; } }

.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;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: .6rem; }
.section-title em { font-style: italic; color: var(--red); }
.section-sub { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-mute); max-width: 54ch; }
.section-head.center .section-sub { margin-inline: auto; }

.section--tinted { background: var(--bg-2); }
.section--ink {
  background: var(--ink);
  color: var(--cream);
}
.section--ink .section-sub { color: rgba(255,253,247,0.68); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--cream); }

/* =============================================================
   4. Typography
   ============================================================= */
.hero-title, .display-xl { font-family: var(--serif); }
.italic { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-primary { background: var(--red); color: var(--cream); }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.section--ink .btn-ghost { color: var(--cream); border-color: rgba(255,253,247,0.28); }
.section--ink .btn-ghost:hover { border-color: var(--cream); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* Cards */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  padding: 2rem;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }

/* Icon badge */
.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(198,39,43,0.1), rgba(31,122,77,0.1));
  color: var(--red);
  margin-bottom: 1.2rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(250, 246, 236, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name em { font-style: italic; color: var(--red); }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: .93rem; font-weight: 500; padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }
.nav-burger {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger svg { width: 20px; height: 20px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-mobile-list a { font-family: var(--serif); font-size: 1.7rem; }
.nav-mobile-close {
  position: absolute; top: 1.6rem; right: 1.6rem;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,253,247,0.3);
  display: grid; place-items: center;
}
.nav-mobile-close svg { width: 20px; height: 20px; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  transform-origin: 0 0; transform: scaleX(0); transition: transform .08s linear;
}

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  display: none; mix-blend-mode: difference; opacity: 0; transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--cream); border-radius: 50%; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px; border: 1px solid var(--cream); border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 54px; height: 54px; margin: -27px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

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

/* Split text */
.split-word, .split-char { display: inline-block; }

/* Marquee */
.marquee { overflow: hidden; position: relative; border-block: 1px solid var(--line); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; padding-block: 1.1rem;
  animation: marqueeScroll 34s linear infinite;
}
@keyframes marqueeScroll { to { transform: translateX(calc(-100% - 3rem)); } }
.marquee-item { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-mute); }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Forms */
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.3rem 1rem .55rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field label {
  position: absolute; left: 1rem; top: 1.1rem;
  pointer-events: none; transition: all .22s var(--ease-out);
  color: var(--ink-mute); font-size: .95rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red);
}
.field select + label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.field select:focus + label { color: var(--red); }
.field select { padding-top: 1.35rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Badges / pills */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line);
}
.pill svg { width: 15px; height: 15px; }
.pill--red { color: var(--red); }
.pill--green { color: var(--green); }
.pill--gold { color: var(--gold-dark); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
}
.hero-illustration {
  position: absolute; inset: 0; z-index: -2;
}
.hero-illustration svg { width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(250,246,236,0) 0%, rgba(250,246,236,0.55) 78%, var(--bg) 100%);
}
.hero-inner { padding-block: clamp(3rem, 8vw, 5rem); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft); max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 3rem; }
.hero-trust-item { display: flex; align-items: baseline; gap: .5rem; }
.hero-trust-value { font-family: var(--serif); font-size: 1.6rem; color: var(--red); }
.hero-trust-label { font-size: .85rem; color: var(--ink-mute); max-width: 12ch; }

.hero-scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-scroll-cue svg { width: 16px; height: 24px; animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* --- Manifesto / about --- */
.manifesto-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .manifesto-grid { grid-template-columns: 0.9fr 1.4fr; gap: 5rem; } }
.manifesto-num { font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 9vw, 7rem); color: var(--gold); line-height: .8; }
.manifesto-text p { font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--ink-soft); line-height: 1.5; }
.manifesto-text p + p { margin-top: 1.2rem; }
.manifesto-pillars { display: grid; gap: 1.6rem; margin-top: 2.6rem; }
@media (min-width: 640px) { .manifesto-pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; }
.pillar-icon svg { width: 20px; height: 20px; }
.pillar-icon.red { background: rgba(198,39,43,0.12); color: var(--red); }
.pillar-icon.green { background: rgba(31,122,77,0.12); color: var(--green); }
.pillar-icon.gold { background: rgba(242,183,5,0.18); color: var(--gold-dark); }
.pillar h4 { font-family: var(--sans); font-weight: 700; font-size: .98rem; }
.pillar p { font-size: .9rem; color: var(--ink-mute); margin-top: .3rem; }

/* --- Servicios --- */
.servicios-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }
.servicio-card h3 { font-size: 1.2rem; }
.servicio-card p { margin-top: .6rem; color: var(--ink-mute); font-size: .95rem; }

/* --- Atractivos bento --- */
.bento {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; }
  .bento .atractivo:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .bento .atractivo:nth-child(2) { grid-column: span 5; grid-row: span 1; }
  .bento .atractivo:nth-child(3) { grid-column: span 5; grid-row: span 1; }
  .bento .atractivo:nth-child(4) { grid-column: span 5; grid-row: span 1; }
  .bento .atractivo:nth-child(5) { grid-column: span 7; grid-row: span 1; }
  .bento .atractivo:nth-child(6) { grid-column: span 4; grid-row: span 1; }
  .bento .atractivo:nth-child(7) { grid-column: span 4; grid-row: span 1; }
  .bento .atractivo:nth-child(8) { grid-column: span 4; grid-row: span 1; }
}
.atractivo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  isolation: isolate; min-height: 220px;
  color: var(--cream);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.atractivo-bg { position: absolute; inset: 0; z-index: -1; }
.atractivo-bg svg { width: 100%; height: 100%; }
.atractivo-scrim { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(27,27,23,0) 30%, rgba(20,15,10,0.82) 100%); }
.atractivo-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; }
.atractivo-region { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.atractivo-body h3 { font-family: var(--serif); font-size: 1.3rem; margin-top: .3rem; }
.atractivo-body p { font-size: .85rem; color: rgba(255,253,247,0.82); margin-top: .4rem; max-width: 34ch; }
.atractivo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.atractivo:hover .atractivo-bg svg { transform: scale(1.08); }
.atractivo-bg svg { transition: transform .8s var(--ease-soft); }

/* --- Cómo funciona --- */
.pasos-grid { display: grid; gap: 2rem; counter-reset: paso; }
@media (min-width: 720px) { .pasos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .pasos-grid { grid-template-columns: repeat(4, 1fr); } }
.paso { position: relative; padding-top: 1rem; }
.paso-num { font-family: var(--serif); font-style: italic; font-size: 3.2rem; color: var(--line); line-height: 1; }
.paso h3 { margin-top: .8rem; font-size: 1.15rem; }
.paso p { margin-top: .5rem; color: var(--ink-mute); font-size: .93rem; }
.paso-connector {
  display: none; position: absolute; top: 2.4rem; left: 100%; width: 2rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
@media (min-width: 720px) { .paso-connector { display: block; } }

/* --- Cotizador --- */
.cotizador {
  background: var(--paper); border-radius: 28px; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: 2.4rem;
}
@media (min-width: 960px) { .cotizador { grid-template-columns: 1fr 1fr; } }
.cotizador-form { display: grid; gap: 1.1rem; }
.cotizador-submit { margin-top: .4rem; }
.cotizador-result {
  border-radius: var(--radius); background: linear-gradient(160deg, rgba(198,39,43,0.06), rgba(31,122,77,0.06));
  border: 1px dashed var(--line);
  padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  min-height: 260px;
}
.cotizador-result.is-empty { align-items: center; text-align: center; color: var(--ink-mute); }
.cotizador-result.is-empty svg { width: 40px; height: 40px; color: var(--gold-dark); margin-bottom: .4rem; }
.cotizador-price { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--red); }
.cotizador-price small { font-family: var(--sans); font-size: .85rem; color: var(--ink-mute); font-weight: 500; display: block; margin-top: .2rem; }
.cotizador-breakdown { display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-mute); }
.cotizador-breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.cotizador-note { font-size: .78rem; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: .8rem; }
.cotizador-ai {
  border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line);
  padding: 1rem 1.2rem; font-size: .9rem; color: var(--ink-soft); display: none; gap: .6rem;
}
.cotizador-ai.is-visible { display: flex; }
.cotizador-ai svg { width: 18px; height: 18px; flex: none; color: var(--gold-dark); margin-top: 2px; }
.cotizador-ai.is-loading { color: var(--ink-mute); font-style: italic; }
.cotizador-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* --- Testimonios --- */
.testimonios-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .8rem; color: var(--ink-mute); font-style: italic; }
.testimonios-track { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .testimonios-track { grid-template-columns: repeat(3, 1fr); } }
.testimonio { display: flex; flex-direction: column; gap: 1.2rem; }
.testimonio-stars { display: flex; gap: .2rem; color: var(--gold); }
.testimonio-stars svg { width: 16px; height: 16px; }
.testimonio p.quote { font-family: var(--serif); font-size: 1.12rem; font-style: italic; line-height: 1.5; color: var(--ink-soft); }
.testimonio-author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testimonio-avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: .95rem; color: var(--cream);
  background: linear-gradient(135deg, var(--red), var(--gold-dark));
  flex: none;
}
.testimonio-author h4 { font-size: .92rem; }
.testimonio-author span { font-size: .8rem; color: var(--ink-mute); }

/* --- FAQ --- */
.faq-list { display: grid; gap: .9rem; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; text-align: left; font-weight: 600; font-size: 1rem;
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--red); transition: transform .4s var(--ease-soft); }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-soft);
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--ink-mute); font-size: .95rem; }

/* --- Contacto --- */
.contacto-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contacto-grid { grid-template-columns: 1fr 1.1fr; } }
.contacto-info { display: grid; gap: 1.5rem; align-content: start; }
.contacto-item { display: flex; gap: 1rem; align-items: flex-start; }
.contacto-item .icon-badge { margin-bottom: 0; background: rgba(255,253,247,0.1); color: var(--gold); }
.contacto-item h4 { font-size: .95rem; color: var(--cream); }
.contacto-item p, .contacto-item a { font-size: .9rem; color: rgba(255,253,247,0.68); }
.contacto-item a:hover { color: var(--gold); }
.contacto-social { display: flex; gap: .7rem; margin-top: .5rem; }
.contacto-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,253,247,0.24);
  display: grid; place-items: center; transition: border-color .3s, background .3s;
}
.contacto-social a:hover { border-color: var(--gold); background: rgba(242,183,5,0.12); }
.contacto-social svg { width: 17px; height: 17px; }
.contacto-form-wrap { background: var(--cream); color: var(--ink); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.6rem); }
.contacto-success { display: none; text-align: center; padding: 2rem 1rem; }
.contacto-success.is-visible { display: block; }
.contacto-success svg { width: 48px; height: 48px; color: var(--green); margin: 0 auto 1rem; }
.contacto-form.is-sent { display: none; }

/* --- Footer --- */
.footer { background: var(--ink); color: rgba(255,253,247,0.6); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,253,247,0.12); }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { margin-top: 1rem; font-size: .88rem; max-width: 32ch; }
.footer-col h5 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .65rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .8rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Chat assistant --- */
.assistant-launcher {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--gold-dark));
  color: var(--cream); display: grid; place-items: center;
  box-shadow: 0 16px 34px -10px rgba(198,39,43,0.55);
  transition: transform .4s var(--ease-soft);
}
.assistant-launcher:hover { transform: scale(1.07) translateY(-2px); }
.assistant-launcher svg { width: 26px; height: 26px; }
.assistant-launcher .badge-dot {
  position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--cream);
}

.assistant-panel {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 150;
  width: min(380px, calc(100vw - 2.4rem)); height: min(560px, calc(100vh - 8rem));
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-soft), opacity .3s;
}
.assistant-panel[data-open="true"] { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.assistant-head {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--cream); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: .8rem;
}
.assistant-head .icon-badge { background: rgba(255,253,247,0.16); color: var(--gold); margin-bottom: 0; width: 42px; height: 42px; }
.assistant-head .icon-badge svg { width: 22px; height: 22px; }
.assistant-head h4 { font-size: .98rem; }
.assistant-head span { font-size: .76rem; color: rgba(255,253,247,0.75); display: flex; align-items: center; gap: .35rem; }
.assistant-head span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fe08a; }
.assistant-close { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.assistant-close svg { width: 16px; height: 16px; }

.assistant-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; background: var(--bg); }
.msg { max-width: 86%; padding: .8rem 1rem; border-radius: 16px; font-size: .89rem; line-height: 1.5; }
.msg-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.msg-typing { align-self: flex-start; display: flex; gap: 4px; padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; border-bottom-left-radius: 4px; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: typingDot 1.2s infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.assistant-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem 1rem; background: var(--bg); }
.assistant-suggestion {
  font-size: .78rem; padding: .5rem .9rem; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line-soft); color: var(--ink-soft);
}
.assistant-suggestion:hover { border-color: var(--red); color: var(--red); }

.assistant-form { display: flex; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line-soft); background: var(--paper); }
.assistant-form input { flex: 1; padding: .8rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); }
.assistant-form input:focus { border-color: var(--red); }
.assistant-form button { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; flex: none; }
.assistant-form button svg { width: 18px; height: 18px; }
.assistant-form button[disabled] { opacity: .5; }

/* =============================================================
   7. Effects
   ============================================================= */
.ambient-sun {
  animation: suntSpin 60s linear infinite;
  transform-origin: center;
}
@keyframes suntSpin { to { transform: rotate(360deg); } }

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

[data-count-to] { font-variant-numeric: tabular-nums; }

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ambient-sun { animation: none; }
  .hero-scroll-cue svg { animation: none; }
}
