/* =========================================================
   MARCA YZA — Landing Page Styles
   Mobile-first. Breakpoints: tablet ≥768px, desktop ≥1025px
   ========================================================= */

:root {
  --green-brand:    #4CB849;
  --green-light:    #EBF8EB;
  --green-medium:   #C6EDCA;
  --green-card:     #D5F0D7;
  --blue-dark:      #1B3A8A;
  --blue-medium:    #1B56D0;
  --blue-card-bg:   #E9EFF8;
  --white:          #FFFFFF;
  --text-dark:      #111111;
  --text-body:      #3D3D3D;
  --text-muted:     #666666;
  --border-radius:  16px;
  --border-radius-sm: 8px;
  --shadow:         0 2px 16px rgba(0,0,0,0.09);
  --shadow-card:    0 4px 20px rgba(0,0,0,0.08);
  --transition:     0.25s ease;
  --container-w:    1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
}

.marca-yza-landing {
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1025px) { .container { padding: 0 40px; } }

/* ================================================================
   1. HERO / BANNER
   ================================================================ */
.hero {
  width: 100%;
  line-height: 0;          /* evita gap por inline-block debajo de picture */
  background: var(--green-light);
}
.hero picture { display: block; width: 100%; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;     /* sin recorte ni estiramiento */
}

/* ================================================================
   2. QUÉ ES MARCA YZA
   ================================================================ */
.que-es-section {
  padding: 48px 0;
  background: var(--white);
}

/* Imagen en todos los breakpoints */
.que-es-img-full picture { display: block; width: 100%; }
.que-es-img-full img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) { .que-es-section { padding: 64px 0; } }
@media (min-width: 1025px) { .que-es-section { padding: 80px 0; } }

/* ================================================================
   3. TE SIRVE / TE ALCANZA / TE CUIDA
   ================================================================ */
.slogan-section {
  padding: 48px 0;
  background: var(--green-light);
}

/* Imagen en todos los breakpoints */
.slogan-img picture { display: block; width: 100%; }
.slogan-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) { .slogan-section { padding: 64px 0; } }
@media (min-width: 1025px) { .slogan-section { padding: 80px 0; } }

/* ================================================================
   4. CONOCE NUESTRAS CATEGORÍAS
   ================================================================ */
.categorias-section {
  padding: 48px 0;
  background: var(--white);
}
.section-heading-text {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--blue-dark);
  margin-bottom: 32px;
}

/* Grilla de categorías */
.categorias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Botón de categoría — 100 % CSS, sin imágenes */
.categoria-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 18px;
  min-height: 58px;
  background: var(--green-light);
  border: 2px solid var(--green-brand);
  border-radius: 50px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(76,184,73,0.12);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.categoria-btn:hover {
  background: var(--green-brand);
  border-color: var(--green-brand);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,184,73,0.30);
}
.categoria-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76,184,73,0.18);
}

/* Bebés queda solo en su fila → ocupa todo el ancho en mobile y tablet */
.categoria-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .categorias-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .section-heading-text { font-size: 30px; }
  .categorias-section { padding: 64px 0; }
  .categoria-btn { font-size: 17px; padding: 17px 22px; min-height: 62px; }
  /* La regla de huérfano se hereda: Bebés sigue siendo full-width en tablet */
}

@media (min-width: 1025px) {
  /* Dos filas simétricas usando grid de 12 columnas:
     Fila 1 → 4 botones × span 3 = 12
     Fila 2 → 3 botones × span 4 = 12                          */
  .categorias-grid { grid-template-columns: repeat(12, 1fr); gap: 14px; }
  .section-heading-text { font-size: 36px; }
  .categoria-btn { font-size: 18px; padding: 18px 16px; min-height: 64px; }
  .categoria-btn:nth-child(-n+4) { grid-column: span 3; }
  .categoria-btn:nth-child(n+5)  { grid-column: span 4; }
  /* Reset de la regla de huérfano: Bebés vuelve a span 4 como sus vecinos */
  .categoria-btn:last-child:nth-child(odd) { grid-column: span 4; }
}

/* ================================================================
   5. CARRUSEL DE PRODUCTOS
   ================================================================ */
.carousel-section {
  padding: 56px 0 64px;
  background: var(--blue-card-bg);
  position: relative;
  overflow: hidden;
}

/* Badge central + cápsulas flotantes animadas */
.carousel-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  height: 150px;
}
.circulo-badge {
  width: 130px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 20px rgba(27,86,208,0.28));
  animation: spin-slow 24s linear infinite;
}
.pill-float { position: absolute; pointer-events: none; }
.pill-float img { height: auto; display: block; }

.pill-f1 { left: 6%;  top: 4px;    width: 58px;  animation: float1 4.2s ease-in-out infinite; }
.pill-f2 { right: 6%; top: 12px;   width: 50px;  animation: float2 3.6s ease-in-out infinite 0.5s; }
.pill-f3 { left: 20%; bottom: 4px; width: 42px;  animation: float3 5.2s ease-in-out infinite 1s; }
.pill-f4 { right: 20%; bottom: 0;  width: 46px;  animation: float1 4.8s ease-in-out infinite 1.5s; }

@keyframes float1 {
  0%, 100% { transform: translateY(0)    rotate(-8deg); }
  50%       { transform: translateY(-18px) rotate(4deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0)    rotate(12deg); }
  50%       { transform: translateY(-14px) rotate(-6deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(-6px) rotate(-4deg); }
  50%       { transform: translateY(10px) rotate(8deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Track del carrusel */
.carousel-wrapper { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0 20px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.yza-mp-carousel-item {
  scroll-snap-align: start;
  flex: 0 0 240px;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.yza-mp-carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.yza-mp-carousel-item a { display: block; }
.yza-mp-carousel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;   /* sin recorte — muestra la caja completa */
  background: #F5F5F5;
}

/* Controles: ocultos en mobile, visibles en tablet+ */
.carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* Flechas rediseñadas con sombra suave y hover de marca */
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(27,58,138,0.18);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.carousel-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(27,58,138,0.32);
  transform: scale(1.07);
}
.carousel-btn:active:not(:disabled) { transform: scale(0.97); }
.carousel-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 768px) {
  .carousel-deco { height: 180px; }
  .circulo-badge { width: 160px; }
  .pill-f1 { width: 70px;  left: 10%; }
  .pill-f2 { width: 62px;  right: 10%; }
  .pill-f3 { width: 52px;  left: 26%; }
  .pill-f4 { width: 58px;  right: 26%; }
  .yza-mp-carousel-item { flex: 0 0 210px; }
  .carousel-controls { display: flex; }
}
@media (min-width: 1025px) {
  .carousel-deco { height: 210px; }
  .circulo-badge { width: 190px; }
  .pill-f1 { width: 90px;  left: 14%; }
  .pill-f2 { width: 82px;  right: 14%; }
  .pill-f3 { width: 70px;  left: 28%; }
  .pill-f4 { width: 74px;  right: 28%; }
  .yza-mp-carousel-item { flex: 0 0 250px; }
}

/* ================================================================
   6. BENEFICIOS
   ================================================================ */
.beneficios-section {
  padding: 48px 0;
  background: var(--white);
}

/* En tablet/desktop la imagen ya incluye el título "Beneficios" dentro:
   se oculta el h2 para no duplicarlo */
.beneficios-section .section-heading-text { margin-bottom: 24px; }
@media (min-width: 768px) {
  .beneficios-section .section-heading-text { display: none; }
  .beneficios-section { padding: 64px 0; }
}
@media (min-width: 1025px) {
  .beneficios-section { padding: 80px 0; }
}

/* Mobile accordion */
.beneficios-accordion { display: block; }
.beneficio-item {
  border: 1px solid var(--green-medium);
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.beneficio-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--green-light);
  border: none;
  font-size: 17px;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: left;
  transition: background var(--transition);
}
.beneficio-btn:hover { background: var(--green-card); }
.beneficio-btn .acc-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.beneficio-btn[aria-expanded="true"] .acc-icon {
  background: var(--green-brand);
  border-color: var(--green-brand);
  color: var(--white);
  transform: rotate(45deg);
}
.beneficio-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--white);
}
.beneficio-content p {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* Tablet/Desktop: imagen rediseñada por equipo */
.beneficios-img { display: none; }
.beneficios-img picture { display: block; width: 100%; }
.beneficios-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

@media (min-width: 768px) {
  .beneficios-accordion { display: none; }
  .beneficios-img { display: block; }
}

/* ================================================================
   7. PREGUNTAS FRECUENTES — ACORDEÓN LINEAL
   ================================================================ */
.faq-section {
  padding: 56px 0 64px;
  background: var(--green-light);
}
.faq-section .section-heading-text {
  color: var(--blue-dark);
  margin-bottom: 36px;
}

/* Tarjeta contenedora única — agrupa todos los ítems */
.faq-grid {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Ítems separados por divisor, sin bordes ni sombras propias */
.faq-item {
  border-bottom: 1px solid var(--green-medium);
}
.faq-item:last-child { border-bottom: none; }

/* Botón de pregunta */
.faq-btn {
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: left;
  line-height: 1.45;
  transition: background var(--transition), color var(--transition),
              padding-left var(--transition);
}
.faq-btn:hover {
  background: var(--green-light);
}

/* Estado expandido: fondo verde suave + barra lateral verde */
.faq-btn[aria-expanded="true"] {
  background: var(--green-light);
  padding-left: 28px;
}
.faq-btn[aria-expanded="true"]::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--green-brand);
}

/* Chevron SVG — rota 180° al abrir */
.faq-btn .acc-icon {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  color: var(--blue-dark);
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-btn[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
  color: var(--green-brand);
}

/* Respuesta */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-content p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .faq-section { padding: 72px 0 80px; }
  .faq-section .section-heading-text { margin-bottom: 40px; }
  .faq-btn { font-size: 16px; padding: 22px 28px; }
  .faq-btn[aria-expanded="true"] { padding-left: 33px; }
  .faq-content p { padding: 0 28px 24px; font-size: 15px; }
}
@media (min-width: 1025px) {
  .faq-section { padding: 88px 0 96px; }
  .faq-section .section-heading-text { font-size: 36px; margin-bottom: 48px; }
  .faq-grid { max-width: 800px; margin: 0 auto; }
  .faq-btn { font-size: 16px; padding: 24px 32px; }
  .faq-btn[aria-expanded="true"] { padding-left: 37px; }
  .faq-content p { padding: 0 32px 26px; }
}

/* ================================================================
   MOBILE LANDSCAPE — Adaptación estilo tablet horizontal
   ================================================================ */
@media (max-width: 767px) and (orientation: landscape) {

  /* Padding lateral más generoso */
  .container { padding: 0 28px; }

  /* Padding vertical reducido — la altura disponible es limitada */
  .que-es-section     { padding: 28px 0; }
  .slogan-section     { padding: 32px 0; }
  .categorias-section { padding: 32px 0; }
  .carousel-section   { padding: 36px 0 40px; }
  .beneficios-section { padding: 28px 0; }
  .faq-section        { padding: 36px 0 40px; }

  /* Heading más compacto para no robar altura */
  .section-heading-text { font-size: 24px; margin-bottom: 22px; }
  .faq-section .section-heading-text { margin-bottom: 24px; }

  /* Categorías: 3 columnas como en tablet */
  .categorias-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .categoria-btn   { font-size: 15px; padding: 13px 14px; min-height: 52px; }

  /* Carousel: 2 ítems visibles a la vez */
  .yza-mp-carousel-item { flex: 0 0 calc(50% - 8px); }

  /* Decoración del carousel más pequeña para no ocupar tanta altura */
  .carousel-deco { height: 110px; margin-bottom: 24px; }
  .circulo-badge { width: 95px; }
  .pill-f1 { width: 46px; }
  .pill-f2 { width: 40px; }
  .pill-f3 { width: 34px; }
  .pill-f4 { width: 36px; }
}

/* ================================================================
   UTILIDAD
   ================================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus visible: accesibilidad de teclado ---- */
:focus-visible {
  outline: 2px solid var(--green-brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.faq-btn:focus-visible,
.beneficio-btn:focus-visible,
.carousel-btn:focus-visible,
.categoria-btn:focus-visible {
  outline-offset: 2px;
}

/* ---- Respeta preferencias de movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}