/* --------- RESETEO BÁSICO --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0A2540;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Contenedor principal */
.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* =========================
   CARRUSEL 3 IMÁGENES (POSTER)
   ========================= */

.carousel-3-container {
  width: 100%;
  padding: 20px 0 40px;
  display: flex;
  justify-content: center;
}

.carousel-3 {
  width: min(1250px, 100% - 2rem); /* un poco más ancho */
  position: relative;
  overflow: hidden;
}

.carousel-3-track {
  display: flex;
  gap: 18px;
  transition: transform .30s ease-out;
}

/* Tarjeta con proporción vertical uniforme */
.carousel-3-item {
  min-width: calc(33.333% - 12px);
  aspect-ratio: 4 / 5;        /* Formato poster */
  background: #fff;           /* Marco blanco */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  padding: 8px;               /* Aire interno */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen completa sin recorte */
.carousel-3-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* No recorta la imagen */
  object-position: center;
  display: block;
  border-radius: 10px;
}

/* Ocultar flechas del carrusel (si existen en el HTML) */
.carousel-3-btn {
  display: none !important;
}

/* Tablet — 2 visibles */
@media (max-width: 900px) {
  .carousel-3-item {
    min-width: calc(50% - 9px);
    aspect-ratio: 4 / 5;
  }
}

/* Móvil — 1 visible */
@media (max-width: 560px) {
  .carousel-3-item {
    min-width: 100%;
    aspect-ratio: 4 / 5;
  }
}




/* --------- BOTONES --------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #1A73E8;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(26, 115, 232, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(26, 115, 232, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #fefffd;
  border-color: #1ae870;
}

.btn-outline:hover {
  background-color: #1A73E8;
  color: #FFFFFF;
}

/* Botón WhatsApp en menú móvil */
.nav a.btn-whatsapp {
  background-color: #696368 !important;
  color: #ffffff !important;
  border: none !important;
  text-align: center;
  font-weight: 600;
  width: 100%;
  margin-top: 0.5rem;
}

.nav a.btn-whatsapp:hover {
  background-color: #8cbb9d !important;
}

/* --------- HEADER / TOPBAR --------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E3E8F0;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1A73E8;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #0A2540;
  font-weight: 500;
  position: relative;
}

.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background-color: #1A73E8;
  transition: width 0.2s ease;
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Botón menú (móvil) */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------- VIDEO WHATSAPP --------- */
.video-whatsapp {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.video-whatsapp .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.video-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.whatsapp-content {
  position: relative;
  z-index: 1;
  color: #353434;
}

.whatsapp-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.whatsapp-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #242525;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #7795e9;
  color: #f0f7f5;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 999px;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #79c076;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .video-whatsapp {
    padding: 60px 15px;
    border-radius: 0;
  }

  .whatsapp-content h2 {
    font-size: 1.4rem;
  }

  .whatsapp-content p {
    font-size: 0.95rem;
  }

  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 10px 28px;
  }
}

/* --------- SECCIONES GENERALES --------- */
.section {
  padding-block: 3.5rem;
}

.section-alt {
  background-color: #F4F6F7;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: #5B6577;
  margin-bottom: 2rem;
}

/* --------- CARDS GENERALES --------- */
.card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* --------- CATEGORÍAS --------- */
.grid-categorias {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.categoria-card {
  border: 1px solid #E3E8F0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.categoria-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.categoria-card p {
  font-size: 0.9rem;
  color: #5B6577;
}

.categoria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(26, 115, 232, 0.18);
  border-color: #1A73E8;
  background: linear-gradient(135deg, #FFFFFF, #E8F0FE);
}

/* --------- PROMOCIONES --------- */
.grid-promos {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promo-card {
  border-left: 4px solid #1A73E8;
}

.promo-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: #E8F5E9;
  color: #1B5E20;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.promo-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.promo-card p {
  font-size: 0.9rem;
  color: #5B6577;
}

/* --------- NOSOTROS --------- */
.grid-nosotros {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  align-items: flex-start;
}

.nosotros-text p {
  margin-bottom: 0.75rem;
  color: #4B5565;
}

.lista-check {
  margin-top: 0.5rem;
  list-style: none;
}

.lista-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}

.lista-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #2ECC71;
  font-weight: 700;
}

/* --------- CONTACTO --------- */
.grid-contacto {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: flex-start;
}

.contact-info p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: #1A73E8;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-buttons {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mapa-card {
  padding: 20px;
}

.mapa-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #e76915;
}

.map-container {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------- FOOTER --------- */
.footer {
  border-top: 1px solid #E3E8F0;
  padding-block: 1.4rem;
  background-color: #FFFFFF;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6B7280;
}

.footer-tagline {
  font-weight: 500;
  color: #1A73E8;
}

/* --------- RESPONSIVE --------- */

/* Tablets */
@media (max-width: 992px) {
  .grid-categorias {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-promos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-nosotros,
  .grid-contacto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Móviles */
@media (max-width: 768px) {
  .topbar .container {
    padding-block: 0.6rem;
  }

  .nav-toggle {
    display: block;
  }

  /* MENÚ MÓVIL TIPO BURBUJA A LA DERECHA */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: auto;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.4rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #E3E8F0;
    display: none;
    min-width: 180px;
    z-index: 60;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    display: block;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
  }

  .nav a.active {
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 600;
  }

  .nav a.btn-whatsapp {
    margin-top: 0.3rem;
    text-align: center;
    align-self: stretch;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding-block: 3rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .grid-categorias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-promos {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .grid-categorias {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* === RAYITA AZUL UNIVERSAL PARA LINK ACTIVO === */
.nav a.active {
  position: relative;
  font-weight: 600;
  color: #0A2540;
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #1A73E8;
  border-radius: 10px;
}

/*IMAGEN DE PROMO 10% */
.img-center,
.img-ejem {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.foto {
  width: 400px;
  height: auto;
}

/*WhatsApp Flotante */
.whatsapp-pill {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 0.55rem 1.25rem;
  background-color: #48c53c;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.whatsapp-pill-img img {
  width: 40px;
  height: 40px;
  display: block;
}

/* Ajuste en móvil: más pequeña */
@media (max-width: 480px) {
  .whatsapp-pill {
    bottom: 16px;
    right: 16px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  .whatsapp-pill-icon svg {
    width: 18px;
    height: 18px;
  }
}

/*Responsivo (para .whatsapp-float si lo usas en otra página) */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
/* Contenedor del carrusel */
.hero-carousel-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0 40px;
}

/* Carrusel más pequeño */
.hero-carousel {
  width: min(300px, 90%);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

/* Cada slide ocupa todo el carrusel */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
}

/* Slide visible */
.hero-slide.active {
  opacity: 1;
}

/* Imagen completa y centrada */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Puntos de navegación */
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: .2s;
}

.hero-dots .dot.active {
  width: 24px;
  background: #111827;
}

