/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:           #FAF7FF;
  --lavender:     #EFE6FF;
  --lavender-mid: #D8C8F5;
  --accent:       #7A3FA5;
  --accent-dark:  #5E2F7E;
  --text:         #1E0A33;
  --text-muted:   #6B5080;
  --white:        #FFFFFF;

  --display: 'Fraunces', Georgia, serif;
  --sans:    'Manrope', system-ui, sans-serif;

  --gutter:      clamp(1rem, 5vw, 2rem);
  --section-pad: clamp(3.5rem, 9vw, 6rem);
  --radius:      1.25rem;
  --radius-sm:   .75rem;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   1b. Cross-banner
   ============================================================= */
.xbanner {
  background: var(--accent);
  padding-block: .6rem;
  text-align: center;
}
.xbanner-text {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  margin: 0;
}
.xbanner-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.xbanner-link:hover { opacity: .85; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg { display: block; max-width: 100%; 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 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.025em; }

::selection { background: var(--accent); color: var(--white); }

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

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

.container {
  width: min(1100px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.text-center { text-align: center; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(122,63,165,.35);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122,63,165,.45);
}

/* =============================================================
   5. Reveal animation
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  background: var(--lavender);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(122,63,165,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Photo — oculta en mobile */
.hero-photo {
  display: none;
  justify-content: flex-start;
}

.photo-placeholder {
  width: clamp(260px, 45vw, 400px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--lavender-mid) 0%, #c8aeed 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 2px dashed rgba(122,63,165,.25);
}

.photo-emoji { font-size: 2.5rem; }

.photo-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-photo img {
  width: clamp(260px, 45vw, 400px);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 20px 56px rgba(30,10,51,.18);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 38ch;
}

/* =============================================================
   7. Badges
   ============================================================= */
.badges-strip {
  background: var(--white);
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(122,63,165,.08);
}

.badges-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   8. Categorías
   ============================================================= */
.categorias {
  background: var(--white);
  padding-block: var(--section-pad);
}

.categorias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.categoria-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(122,63,165,.1);
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .2s;
}
.categoria-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30,10,51,.1);
  border-color: rgba(122,63,165,.25);
}

.categoria-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.categoria-nombre {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.categoria-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.categoria-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* =============================================================
   9. Separador
   ============================================================= */
.separador {
  background: var(--lavender);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.separador-frase {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}
.separador-frase em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* =============================================================
   10. Consulta / WhatsApp
   ============================================================= */
.consulta {
  background: var(--white);
  padding-block: var(--section-pad);
}

.consulta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 540px;
  margin-inline: auto;
}

.consulta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(122,63,165,.1);
  color: var(--accent);
}

.consulta-titulo {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
}

.consulta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

/* =============================================================
   11. Footer
   ============================================================= */
.footer {
  background: var(--text);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--lavender-mid);
  transition: color .2s;
}
.footer-link:hover { color: var(--white); }

/* =============================================================
   12. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .categorias-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 400px 1fr;
    gap: 5rem;
  }
  .hero-photo {
    display: flex;
  }
  .hero-text {
    align-items: flex-start;
    text-align: left;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =============================================================
   13. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
