/* ============================================================
   CROMOSÍNTESIS · Hoja de estilos del sitio
   Paleta y tipografía oficiales de marca
   ============================================================ */

/* ---------- Tipografía Aloevera Display ---------- */
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-Thin.otf') format('opentype');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-ExtraLight.otf') format('opentype');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aloevera';
  src: url('../fonts/AloeveraDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --dark:    #1E031D;   /* oscuro casi negro */
  --purple:  #350B34;   /* púrpura profundo */
  --cream:   #E1DAD0;   /* crema cálido */
  --gray:    #8E8E8E;   /* gris neutro */
  --offwhite:#F4F4F2;   /* blanco roto */

  --bg:        var(--dark);
  --bg-alt:    var(--purple);
  --text:      var(--offwhite);
  --text-soft: #c9bfc6;
  --accent:    var(--cream);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: 'Aloevera', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.display {
  font-weight: 200;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
}
.display strong { font-weight: 700; }
h2.section-title {
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.5rem;
}
h2.section-title strong { font-weight: 700; }
.eyebrow {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: inline-block;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 300; color: var(--text-soft); }
p { font-weight: 300; }
p + p { margin-top: 1.1rem; }

/* ---------- Layout ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.container { max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 780px; margin: 0 auto; }
.bg-dark   { background: var(--dark); }
.bg-purple { background: var(--purple); }
.bg-cream  { background: var(--cream); color: var(--dark); }
.bg-cream .eyebrow, .bg-cream .lead { color: var(--purple); }
.bg-cream .lead { color: #5a4a58; }
.bg-light  { background: var(--offwhite); color: var(--dark); }
.bg-light .eyebrow { color: var(--purple); }
.bg-light .lead { color: #5a4a58; }

/* Figura del mapa de color */
.mapa-figure { margin: 0; text-align: center; }
.mapa-figure img { width: min(100%, 720px); height: auto; margin: 0 auto; }
.mapa-figure figcaption { margin-top: 1rem; font-size: .9rem; color: var(--gray); letter-spacing: .02em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,3,29,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(225,218,208,.10);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--pad);
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 2.3rem; align-items: center; list-style: none; }
/* Botón Inscríbete del menú: más aire alrededor y tipografía morada */
.nav-links .btn-primary,
.nav-links .btn-primary:hover { color: var(--purple); }
.nav-links .btn-primary { margin-left: 1.2rem; padding: .85rem 2.4rem; letter-spacing: .05em; font-weight: 600; }
.nav-links a {
  font-size: .92rem; font-weight: 400; letter-spacing: .02em;
  color: var(--text-soft); position: relative; padding: .2rem 0;
  transition: color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--accent);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); transition: .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: inherit; font-size: .98rem; font-weight: 500;
  letter-spacing: .02em; cursor: pointer;
  padding: .95rem 2rem; border-radius: 100px; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary { background: var(--cream); color: var(--purple); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(225,218,208,.18); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(225,218,208,.4); }
.btn-ghost:hover { background: rgba(225,218,208,.08); border-color: var(--cream); }
.bg-cream .btn-ghost { color: var(--dark); border-color: rgba(53,11,52,.35); }
.bg-cream .btn-ghost:hover { background: rgba(53,11,52,.06); }
.btn-wa { background: #25D366; color: #06371d; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.25); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: clamp(5rem,12vh,9rem) var(--pad) clamp(4rem,8vh,6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 75% 30%, rgba(53,11,52,.85) 0%, rgba(30,3,29,0) 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(225,218,208,.10) 0%, rgba(30,3,29,0) 70%),
    var(--dark);
}
.hero-watermark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 620px); opacity: .07; z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero .display { margin-bottom: 1.6rem; }
.hero .lead { max-width: 620px; margin-bottom: 2.4rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Entrada escalonada del hero al cargar */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { opacity: 0; animation: heroIn .9s var(--ease) both; }
.hero-inner > *:nth-child(1) { animation-delay: .15s; }
.hero-inner > *:nth-child(2) { animation-delay: .32s; }
.hero-inner > *:nth-child(3) { animation-delay: .49s; }
.hero-inner > *:nth-child(4) { animation-delay: .66s; }
.hero-inner > *:nth-child(5) { animation-delay: .83s; }
/* Marca de agua del isotipo: aparece con suavidad */
@keyframes watermarkIn { from { opacity: 0; transform: translateY(-50%) scale(.96); } to { opacity: .07; transform: translateY(-50%) scale(1); } }
.hero-watermark { opacity: 0; animation: watermarkIn 1.6s var(--ease) .3s both; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(225,218,208,.04);
  border: 1px solid rgba(225,218,208,.10);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(225,218,208,.28); background: rgba(225,218,208,.06); }
.card .num { font-size: .8rem; letter-spacing: .2em; color: var(--accent); font-weight: 500; }
.card h3 { font-size: 1.25rem; font-weight: 500; margin: .8rem 0 .6rem; }
.card p { font-size: .98rem; color: var(--text-soft); }
.bg-cream .card { background: rgba(53,11,52,.05); border-color: rgba(53,11,52,.12); }
.bg-cream .card h3 { color: var(--purple); }
.bg-cream .card p { color: #5a4a58; }
.bg-cream .card:hover { background: rgba(53,11,52,.08); border-color: rgba(53,11,52,.25); }

/* ---------- Lista de beneficios ---------- */
.benefits { list-style: none; display: grid; gap: 1.1rem; }
.benefits li {
  position: relative; padding-left: 2.4rem; font-size: 1.05rem;
  font-weight: 300; color: var(--text-soft);
}
.benefits li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; transform: rotate(45deg);
  border: 1.5px solid var(--accent);
}
.bg-cream .benefits li { color: #4a3a48; }
.bg-cream .benefits li::before { border-color: var(--purple); }

/* ---------- Pills (audiencia) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .8rem; }
.pill {
  border: 1px solid rgba(225,218,208,.25); border-radius: 100px;
  padding: .6rem 1.3rem; font-size: .95rem; font-weight: 400; color: var(--text-soft);
  transition: .3s var(--ease);
}
.pill:hover { border-color: var(--cream); color: var(--text); }

/* ---------- Quote / frase ---------- */
.quote-section { text-align: center; }
.quote {
  font-weight: 200; font-style: italic;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25;
  max-width: 880px; margin: 0 auto;
}
.quote::before, .quote::after { content: '“'; }
.quote::after { content: '”'; }

/* ---------- Imagen placeholder ---------- */
.placeholder {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(225,218,208,.05) 0 14px, rgba(225,218,208,.02) 14px 28px),
    var(--purple);
  border: 1px dashed rgba(225,218,208,.28);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; aspect-ratio: 4 / 3; color: var(--text-soft);
  text-align: center; padding: 1.5rem;
}
.placeholder .ph-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.placeholder .ph-icon { font-size: 2rem; opacity: .5; margin-bottom: .6rem; }
.placeholder--tall { aspect-ratio: 3 / 4; }
.placeholder--wide { aspect-ratio: 16 / 9; }
.bg-cream .placeholder { background: repeating-linear-gradient(45deg, rgba(53,11,52,.06) 0 14px, rgba(53,11,52,.02) 14px 28px), #d8cfc3; border-color: rgba(53,11,52,.3); color: #6a5a68; }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split--reverse .split-media { order: -1; }

/* Imágenes de contenido (fotos) */
.media-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}

/* ---------- Steps (recorrido sesión) ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-top: 1px solid rgba(225,218,208,.12);
}
.step:last-child { border-bottom: 1px solid rgba(225,218,208,.12); }
.step-num {
  counter-increment: step;
  font-weight: 200; font-size: 2rem; color: var(--accent); min-width: 2.5rem;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: .3rem; }
.step p { color: var(--text-soft); font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-weight: 300; font-size: clamp(2rem,4.5vw,3.2rem); margin-bottom: 1rem; }
.cta-band h2 strong { font-weight: 700; }
.cta-band .lead { max-width: 620px; margin: 0 auto 2.2rem; }

/* ---------- Formulario ---------- */
.form-card {
  background: rgba(225,218,208,.04); border: 1px solid rgba(225,218,208,.12);
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem);
}
.form-grid { display: grid; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; font-weight: 300; color: var(--text);
  background: rgba(30,3,29,.5); border: 1px solid rgba(225,218,208,.2);
  border-radius: 10px; padding: .85rem 1rem; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #7a7079; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cream); background: rgba(30,3,29,.8);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: .85rem; color: var(--gray); margin-top: .4rem; }

/* ---------- Contacto / redes ---------- */
.contact-methods { display: grid; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(225,218,208,.12); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; transition: .3s var(--ease);
}
.contact-method:hover { border-color: rgba(225,218,208,.3); transform: translateY(-2px); }
.contact-method .ico {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: rgba(225,218,208,.08); color: var(--accent);
}
.contact-method .ico svg { width: 20px; height: 20px; }
.contact-method strong { font-weight: 500; display: block; font-size: 1rem; }
.contact-method span { font-size: .9rem; color: var(--text-soft); }
.socials { display: flex; gap: 1rem; }
.social-link {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(225,218,208,.2); color: var(--text-soft); transition: .3s var(--ease);
}
.social-link:hover { border-color: var(--cream); color: var(--text); transform: translateY(-3px); }
.social-link svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #160214; padding: clamp(3rem,6vw,4.5rem) var(--pad) 2rem; border-top: 1px solid rgba(225,218,208,.08); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-logo img { height: 34px; margin-bottom: 1rem; }
.footer-grid p { color: var(--gray); font-size: .92rem; max-width: 320px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { font-size: .95rem; color: var(--text-soft); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(225,218,208,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: var(--gray);
}

/* ---------- Reveal animación ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Sin backdrop-filter en móvil: evita que el menú fijo quede atrapado en el header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(30,3,29,.96); }
  .nav-links {
    position: fixed; inset: 0; width: 100%; z-index: 55;
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
    background: var(--dark); padding: 5rem 2rem 3rem;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-links .btn-primary { margin-left: 0; margin-top: .6rem; }
  .nav-toggle { display: block; z-index: 60; }
  /* Hamburguesa -> X cuando el menú está abierto */
  .nav-links.open + .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav-links.open + .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-links.open + .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .grid-2, .grid-3, .split, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { opacity: 1; animation: none; }
  .hero-watermark { opacity: .07; animation: none; }
  html { scroll-behavior: auto; }
}
