/* --------- 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;
}

/* --------- 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: #25D366 !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 {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

/* Video cubriendo solo el fondo verde */
.video-whatsapp .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  /* Ajusta visibilidad del video */
}

/* Capa oscura para contraste (opcional) */
.video-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  /* sube a 0.4 si el video es muy brillante */
  z-index: 0;
}

/* Contenido encima */
.whatsapp-content {
  position: relative;
  z-index: 1;
  color: #353434;
}

/* Título y texto */
.whatsapp-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.whatsapp-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #242525;
}

/* Botón */
.btn-whatsapp {
  display: inline-block;
  background-color: #48c53c;
  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);
}

/* === Ajuste responsive para móviles (el video se mantiene) === */
@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;
  }
}


/* --------- 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);   /* un poquito abajo de la barra */
    right: 1rem;                /* pegado al botón hamburguesa */
    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;              /* oculto por defecto */
    min-width: 180px;
    z-index: 60;
  }

  .nav.nav-open {
    display: flex;
  }

  /* Links del menú en columna, como la segunda imagen */
  .nav a {
    width: 100%;
    display: block;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
  }

  /* Link ACTIVO en verde tipo botón */
  .nav a.active {
    background-color: #25D366;
    color: #FFFFFF;
    font-weight: 600;
  }

  /* Botón de WhatsApp dentro del menú, ancho completo */
  .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;
}

/* Rayita azul debajo del link activo */
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: #1A73E8;
  border-radius: 10px;
}

/* ========= SECCIÓN SERVICIOS (VISIÓN / MISIÓN / VALORES) ========= */

.section#servicios {
  padding: 3.5rem 0;
  background-color: #f9fafb;         /* fondo suave, opcional */
}

/* Título y subtítulo */
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #df3e21;
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

/* GRID de tarjetas */
.vmv-grid {
  display: grid;
  gap: 1.5rem;
}

/* Escritorio: 3 columnas */
@media (min-width: 992px) {
  .vmv-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablets: 2 columnas */
@media (min-width: 640px) and (max-width: 991px) {
  .vmv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: 1 columna (ya por defecto con solo gap) */


/* TARJETAS */
.vmv-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 10px 24px rgba(15, 61, 62, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Línea de color arriba de la tarjeta */
.vmv-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(90deg, #d33014, #a5b6b4);
}

/* Hover (solo en pantallas con hover) */
@media (hover:hover) {
  .vmv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  }
}

/* Iconito circular */
.vmv-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background-color: #c2b6b6;   /* azul clarito */
  color: #98a1a1;              /* verde acento */
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Títulos dentro de la tarjeta */
.vmv-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2022;
  margin-bottom: 0.5rem;
}

/* Texto de párrafo */
.vmv-card p {
  font-size: 120%;
  color: #151616;
  line-height: 1.6;
}

/* LISTA de valores */
.vmv-list {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  font-size: 120%;
  color: #111827;
  line-height: 1.6;
}

.vmv-list li {
  margin-bottom: 0.35rem;
}

.vmv-list li strong {
  color: #0f0f0f;   /* resalta los títulos de cada valor */
}


