/* ==========================================================================
   site.css — CSS del landing v2 de Puras Fregonas, portado como CSS DIRECTO.

   El landing NO es Tailwind (verificado en la tarea 01): el look vive en CSS
   escrito a mano + inline styles + 2 bloques <style jsx>. Este archivo es
   FUENTE VERSIONADA, no un artefacto generado — se edita a mano. Tailwind
   (CLI standalone) entra solo en el demo (tareas 08–12).

   Fuentes de este archivo (referencia/ de la tarea 01):
     1. referencia/input.css        — globals.css de v2 corregido (llave 120/120),
                                       sin la directiva de importación de Tailwind;
                                       el theme-inline convertido a variables :root;
                                       sin el bloque de impresión (era del blog,
                                       fuera de alcance); sin el bloque 1024px
                                       duplicado.
     2. referencia/estilos-jsx/header.css  — <style jsx> de Header.tsx
     3. referencia/estilos-jsx/hero.css    — <style jsx> de HeroCarousel.tsx

   Fuentes autohospedadas (decisión tarea 03): Poppins (primaria) y Geist
   (fallback) sirven localmente desde /fonts — sin CDN de Google, CSP cerrable,
   sin fuga de IP de las usuarias a un tercero.
   ========================================================================== */

/* ===== Fuentes autohospedadas ===== */

/* Poppins — primaria del body. Pesos 300/400/500/600/700, subconjunto latin.
   Descargados de fonts.gstatic.com (Poppins v24). Ver README para hashes. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/poppins-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-latin-700.woff2') format('woff2');
}

/* Geist — fallback (así lo definía layout.tsx de v2 vía next/font/local). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-mono-latin.woff2') format('woff2');
}

/* ===== Sistema de diseño del rebrand (era el theme-inline de Tailwind en v2) =====
   Escalas de marca. Se conservan intactas aunque el landing vivo use hex
   directos y `var(--eva-*)`: son el sistema de diseño que dirigió Alan y la
   fuente para las tareas 04/05. No renombrar, no consolidar. */
:root {
  --color-purple-900: #300c63;
  --color-purple-800: #4a1a7a;
  --color-purple-700: #5e2491;
  --color-purple-600: #7233a8;
  --color-purple-500: #834e9f;
  --color-purple-400: #a06dbc;
  --color-purple-300: #bd8fd3;
  --color-purple-200: #d4b3e5;
  --color-purple-100: #e9d8f4;
  --color-purple-50: #f5eefa;
  --color-purple-25: #f0e7f2;

  --color-magenta-700: #8c2377;
  --color-magenta-600: #a42b8e;
  --color-magenta-500: #b83099;
  --color-magenta-400: #c03180;
  --color-magenta-300: #ca3083;
  --color-magenta-200: #de6ab0;
  --color-magenta-100: #efe7f3;

  --background: #faf7f5;
  --foreground: #1a1a2e;
  --brand: #834e9f;
  --accent: #c03180;
  --eva-magenta: #ca3083;
  --eva-purple: #9166b3;
  --eva-purple-deep: #864aac;
  --eva-purple-dark: #35106f;

  --font-geist-sans: 'Geist';
  --font-geist-mono: 'Geist Mono';
}

/* ===== Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  background: #42208a;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Poppins', var(--font-geist-sans), system-ui, sans-serif;
  font-size: 14px;
  line-height: 24px;
}

/* Utilidad usada por page.tsx de v2 (`<main class="min-h-screen">`). Es una de
   las ~2 utilidades Tailwind que tocaba el landing vivo; aquí como CSS plano. */
.min-h-screen { min-height: 100vh; }

/* Alpine: oculta el marcado x-data hasta que Alpine hidrata (evita FOUC). */
[x-cloak] { display: none !important; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #5e2491, #834e9f);
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #8c2377, #ca3083);
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: transparent;
  color: #5e2491;
  border: 2px solid #5e2491;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: #5e2491; color: white; }

/* Chips */
.chip-purple {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e9d8f4;
  color: #5e2491;
}
.chip-magenta {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #efe7f3;
  color: #8c2377;
}

/* Cards */
.eva-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow:
    0 4px 6px rgba(53, 16, 111, 0.06),
    0 10px 30px rgba(53, 16, 111, 0.10),
    0 1px 3px rgba(53, 16, 111, 0.08);
  padding: 1.5rem;
}

.eva-bubble {
  background: linear-gradient(135deg, rgba(145, 102, 179, 0.15), rgba(202, 48, 131, 0.10));
  backdrop-filter: blur(8px);
  border-radius: 1.25rem;
  border: 1px solid rgba(145, 102, 179, 0.25);
  padding: 1.25rem;
}

.eva-glow {
  box-shadow:
    0 0 20px rgba(202, 48, 131, 0.3),
    0 0 60px rgba(145, 102, 179, 0.2);
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.8); }
  70% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(202, 48, 131, 0.3); }
  50% { box-shadow: 0 0 40px rgba(202, 48, 131, 0.6); }
}

.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
.animate-slide-up { animation: slide-up 0.6s ease-out forwards; }
.animate-slide-in-right { animation: slide-in-right 0.6s ease-out forwards; }
.animate-pop-in { animation: pop-in 0.5s ease-out forwards; }
.animate-bobble { animation: bobble 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===== THEME-TWO PATTERNS ===== */

/* bg-shape: large rotated ellipse for hero background */
.bg-shape {
  position: absolute;
  height: 190%;
  width: 100%;
  display: block;
  border-radius: 120px;
  background: linear-gradient(-47deg, #35106f 0%, #663592 100%);
  bottom: 0;
  right: 0;
  transform: translate(35%, -28%) rotate(-35deg);
  z-index: 0;
}

/* Section heading pattern */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.section-heading > span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--eva-magenta);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-heading > h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
.section-heading > h2::after {
  position: absolute;
  content: '';
  height: 3px;
  width: 70px;
  background: linear-gradient(135deg, #8c2377, #ca3083);
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
.section-heading > p {
  color: #565656;
  font-size: 15px;
  line-height: 1.8;
  max-width: 540px;
  margin: 30px auto 0;
}

/* Section padding */
.ptb_100 {
  padding: 100px 0;
}
.ptb_50 {
  padding: 50px 0;
}

/* Feature card hover lift */
.feature-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 0.313rem 0.875rem rgba(45, 49, 54, 0.09);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(31, 45, 61, 0.125);
}
.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0e7f2, #e0d1ec);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* Pricing card */
.price-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.313rem 0.875rem rgba(45, 49, 54, 0.09);
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 1rem 3rem rgba(31, 45, 61, 0.125);
}
.price-card.featured {
  background: linear-gradient(135deg, #35106f 0%, #663592 100%);
  color: white;
}
.price-card.featured h3,
.price-card.featured .plan-price,
.price-card.featured li {
  color: white;
}
.price-card .plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}
.price-card .plan-price small {
  font-size: 1rem;
  font-weight: 400;
  color: #565656;
}
.price-card.featured .plan-price small {
  color: rgba(255,255,255,0.7);
}
.price-card ul li {
  font-size: 14px;
  color: #565656;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.price-card.featured ul li {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}
.price-card ul li::before {
  content: '✓';
  color: var(--eva-magenta);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card.featured ul li::before {
  color: #e0d1ec;
}

/* Navbar */
.nav-scrolled {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Counter / stats item */
.counter-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0,0,0,0.12);
}
.counter-item .counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(-47deg, #35106f, #ca3083);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.counter-item .counter-label {
  font-size: 13px;
  color: #565656;
}

/* =========================================================
   Desktop enhancements (1024px+)
   ========================================================= */
@media (min-width: 1024px) {
  .section-heading {
    margin-bottom: 80px;
  }
  .section-heading > h2 {
    font-size: clamp(2rem, 3vw, 3rem);
  }
  .ptb_100 {
    padding: 120px 0;
  }
  .feature-card {
    padding: 2.5rem;
  }
  .price-card {
    padding: 3rem 2.5rem;
  }
  .counter-item .counter-number {
    font-size: 3rem;
  }
  .counter-item .counter-label {
    font-size: 14px;
  }
}

/* =========================================================
   Motion: scroll reveal, EVA idle float + parallax, hover lift
   ========================================================= */

/* Scroll-reveal: hidden until JS adds .reveal-in when entering viewport */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.reveal-in {
  opacity: 1;
  transform: none;
}

/* EVA idle float — animates `transform`, so the JS parallax (which sets the
   independent `translate` property) composes with it instead of fighting it. */
@keyframes evaFloat {
  0%, 100% { transform: translateY(-7px); }
  50% { transform: translateY(7px); }
}
.eva-anim {
  animation: evaFloat 6s ease-in-out infinite;
  will-change: transform;
}

/* Hover lift for inline-styled cards (CSS-only, no :hover in inline styles) */
.lift {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.lift:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .eva-anim { animation: none !important; }
  .lift { transition: none !important; }
  .lift:hover { transform: none !important; }
}

/* Alpine: oculta los nodos con x-cloak hasta que hidrata (evita el flash del
   menú móvil, cuya clase base es display:block por debajo de 1024px). */
[x-cloak] {
  display: none !important;
}

/* =========================================================
   Header — <style jsx> de Header.tsx (referencia/estilos-jsx/header.css).
   El scoping de styled-jsx se elimina: aquí es CSS plano.
   ========================================================= */

@keyframes header-drop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-ctas {
  display: none;
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menú móvil como overlay que CUBRE el viewport bajo la barra del header.
   Arregla el defecto §4 de NOTAS.md: en v2 el panel fluía en el documento y a
   390px dejaba ver el hero por debajo. Aquí va fixed con fondo opaco (el inline
   del marcado pone background:#36136A) y ocupa de la barra hacia abajo. Alpine
   lo muestra/oculta con x-show (display). */
.mobile-menu {
  display: block;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 45;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }
  .desktop-ctas {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

/* =========================================================
   Hero — <style jsx> de HeroCarousel.tsx (referencia/estilos-jsx/hero.css).
   `:global(.hero-slide)` / `:global(.hero-arrow)` de styled-jsx quedan como
   `.hero-slides .hero-slide` y `.hero-arrow` en CSS plano.
   ========================================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 84px 0 64px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-banner {
  width: 100%;
  margin: 0 0 22px;
  padding: 1rem;
  background: linear-gradient(135deg, #8c2377, #ca3083);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-banner p {
  margin: 0 auto;
  max-width: 920px;
  color: #fff;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.3;
  font-weight: 200;
}

.hero-container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
  align-items: center;
}

.hero-left {
  width: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  text-align: center;
}

.hero-slides .hero-slide {
  align-items: center;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 0 12px;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.eva-circle {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(236, 72, 153, 0.35) 0%,
    rgba(124, 58, 237, 0.28) 55%,
    rgba(54, 19, 106, 0.6) 100%
  );
  box-shadow:
    0 14px 36px rgba(236, 72, 153, 0.25),
    0 0 0 5px rgba(255, 255, 255, 0.06);
  position: relative;
}

.hero-scroll-cue {
  display: none;
}

.hero-chevron {
  font-size: 1.2rem;
  animation: heroBounce 1.8s ease-in-out infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding: 74px 0 80px;
  }
  .hero-container {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
  }
  .hero-left {
    text-align: left;
  }
  .hero-slides {
    text-align: left;
  }
  .hero-slides .hero-slide {
    align-items: flex-start;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
  .hero-controls {
    justify-content: flex-start;
  }
  .eva-circle {
    width: 390px;
    height: 390px;
  }
  .hero-scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    z-index: 3;
    pointer-events: none;
  }
}
