/* ═══════════════════════════════════════════
   LAS BASES DE MI PÁGINA
   Aquí pongo lo primerito, como limpiar los márgenes de todos los elementos
   para que no se vea desordenado cuando empiezo a maquetar.
   ═══════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  color-scheme: light dark;
}

/* Esto es para que no te pegue un flash blanco en la cara si entras de noche */
html:not([data-theme]) {
  background: var(--body-bg);
}

/* Material Icons Styling */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  letter-spacing: var(--tracking-tight);
  font-size: var(--text-body);
  line-height: var(--leading-base);
  background-color: var(--body-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Gradientes de Fondo para dar ambiente ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(212, 87, 122, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(224, 195, 252, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(212, 87, 122, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(224, 195, 252, 0.07) 0%, transparent 50%);
}

/* Aquí ajusto cosas básicas como botones y enlaces */
a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/*Esto es para que los botones de mi barra de navegación en la página tengan un estilo consistente*/
.icon-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}

.icon-btn svg,
.icon-btn span,
.icon-btn i {
    display: block;
    margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  display: block;
}

/* Mi caja principal, para que nada se pegue a las orillas de la pantalla */
.container {
  width: 100%;
  max-width: var(--container-w);
  padding-inline: clamp(16px, 4vw, 32px);
  margin-inline: auto;
}

/* Cositas que me sirven para esconder cosas rápido */
.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Puse la barrita de scroll un poco más delgada porque la normal está muy tosca */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Para que el navegador no se canse cargando cosas que no se ven todavía */
.cv-heavy {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 800px;
}

/* Aquí ordeno los tamaños de mis títulos, del más grande al más chico */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  color: var(--gray-900);
}

.hero-text h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--gray-900);
}

.section-header h2 {
  font-size: var(--text-9);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.drawer-head strong,
.product-title {
  font-size: var(--text-8);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.form-card h3,
.summary-card h3,
.benefits-grid h4,
.cat-card h3 {
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: var(--leading-base);
}

.hero-text p {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--leading-loose);
}

.btn, .cart-btn, .label, .step .txt strong {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-base);
}

.tag, .card-cat, .kicker, .cal-dow, .footer-col h4, .step .txt span {
  font-size: var(--text-micro);
  font-weight: 500;
}

/* Esta letra la uso para que se vea más elegante, como una carta */
.brand em,
.testimonial-card blockquote,
.hero-text h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

/* Para que las cosas aparezcan suavemente cuando vas bajando la página */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   PARA QUE TODOS PUEDAN USAR MI WEB
   Me dijeron que es importante que se vea bien cuando usas el teclado.
   ═══════════════════════════════════════════ */

/* Estilo de foco global para TODOS mis elementos interactivos */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Cuando seleccionas botones con el teclado, les pongo un brillito rosa */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
select:focus-visible {
  outline: 2px solid var(--pink-main);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* Para las cajitas de texto, les pongo un borde rosa cuando estás escribiendo */
.input:focus-visible,
.textarea:focus-visible,
input:focus-visible,
textarea:focus-visible {
  border-color: var(--pink-main);
  box-shadow: 0 0 0 3px rgba(212, 87, 122, 0.15);
  outline: none;
}

/* También mis tarjetas de productos tienen que avisar que están seleccionadas */
.product-card:focus-visible,
.carousel-card:focus-visible,
.cat-card:focus-visible,
.testimonial-card:focus-visible,
.contact-card:focus-visible,
.benefit-card:focus-visible {
  outline: 2px solid var(--pink-main);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* Si usas mouse, no quiero que se vea ese borde feo, solo para teclado */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Me aseguro de que los inputs mantengan su estilo de foco aunque no se use :focus-visible */
.input:focus:not(:focus-visible),
.textarea:focus:not(:focus-visible) {
  border-color: var(--pink-main);
  box-shadow: 0 0 0 3px rgba(212, 87, 122, 0.15);
}

/* ═══════════════════════════════════════════
   EL PUNTERO DEL MOUSE
   ═══════════════════════════════════════════ */
a,
button,
[role="button"],
.cat-card,
.product-card,
.carousel-card,
.testimonial-card,
.footer-social a,
.footer-col a,
.search-result-item,
.filter-check,
.popup-close,
select,
label,
.mobile-menu nav a,
.rewards-highlight .btn,
.modal-overlay,
summary {
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   PARA GENTE QUE NO LE GUSTA EL MOVIMIENTO
   Si alguien configuró su compu para no ver animaciones, aquí las quito todas.
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .reveal-up,
  .reveal-scale,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .carousel-track {
    animation: none !important;
  }

  .whatsapp-float::after {
    animation: none !important;
  }

  #intro {
    transition: none !important;
  }

  #intro .bloom-img {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ═══════════════════════════════════════════
   AJUSTES PARA PANTALLAS GRANDES
   ═══════════════════════════════════════════ */
@media (min-width: 1920px) {
  .container {
    max-width: var(--container-w-wide);
    padding-inline: 48px;
  }

  /* Hago mis botones más grandes para que se vean bien desde lejos */
  .btn {
    padding: 16px 32px;
    font-size: 16px;
  }

  .btn-sm {
    padding: 12px 24px;
    font-size: 14px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-header p {
    font-size: 17px;
  }
}

/* He quitado la clase de rendimiento para evitar conflictos con Intersection Observer */