/* =================== PALETA DE COLORES =================== */
:root {
  --azul: #0a3d62;        /* Azul empresarial principal (original) */
  --azul-claro: #3c6382;  /* Azul secundario */
  --gris: #f1f2f6;        /* Fondo claro */
  --gris-texto: #576574;  /* Texto gris oscuro */
  --blanco: #ffffff;
  --amarillo: #feca57;    /* Detalle */
  --negro: #222f3e;
  --sombra: rgba(0,0,0,0.12);
}

/* =================== RESETEO GENERAL =================== */
* {
  box-sizing: border-box;
}

html, body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--gris);
  color: var(--gris-texto);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* =================== ENCABEZADO =================== */
.encabezado {
  background: var(--azul);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.encabezado .logo-desktop {
  max-height: 70px;
  width: auto;
}

.logo-mobile {
  display: none;
}

/* =================== ENCABEZADO - Título pro =================== */
.encabezado h1 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: "Segoe UI", Roboto, sans-serif;
  text-transform: uppercase;

  /* Degradado atractivo */
  background: linear-gradient(90deg, var(--amarillo), #fff, var(--amarillo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Sombra sutil */
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);

  /* Animación */
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  animation: fadeDown 1s ease forwards;
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* =================== BOTONES HAMBURGUESA / CERRAR =================== */
.hamburger,
.close-menu {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.6rem;
  padding: 8px;
  transition: transform 0.2s ease;
}

.hamburger:hover,
.close-menu:hover {
  transform: scale(1.14);
  color: var(--amarillo);
}

/* =================== MENÚ LATERAL =================== */
.menu {
  z-index: 2000;
}

#main-nav {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100%;
  padding-top: 72px;
  background: linear-gradient(180deg, rgba(10,61,98,0.98), rgba(0,22,48,0.98));
  box-shadow: -8px 0 24px rgba(0,0,0,0.35);
  transition: right 0.36s cubic-bezier(.2,.9,.3,1);
  z-index: 2500;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid rgba(255,255,255,0.03);
}

#main-nav.show { right: 0; }

#main-nav .close-menu {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  background: rgba(255,255,255,0.06);
  padding: 8px;
  border-radius: 8px;
  color: var(--blanco);
  font-size: 1.05rem;
  cursor: pointer;
}

#main-nav.show .close-menu { display: block; }

#main-nav ul {
  list-style: none;
  padding: 10px 12px 40px 12px;
  margin: 0;
}

#main-nav ul li { margin: 10px 0; }

#main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--blanco);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px;
  border-radius: 10px;
  transition: transform 0.28s ease, background 0.25s ease, color 0.25s ease;
  position: relative;
}

#main-nav ul li a i {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--amarillo);
  flex: 0 0 30px;
  border-radius: 6px;
}

#main-nav ul li a:hover {
  background: var(--amarillo);
  color: var(--azul);
  transform: translateX(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#main-nav ul li a.active {
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

#main-nav .menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 18px 6px;
  border-radius: 2px;
}

/* =================== OVERLAY =================== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.52);
  z-index: 2200;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s;
  visibility: hidden;
}
.overlay.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* =================== HERO / FRASE =================== */
.body h4 {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  color: var(--azul);
  margin: 2em 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =================== IMÁGENES REDONDAS =================== */
.contenido-img {
  background: var(--blanco);
  padding: 3em 0;
  text-align: center;
}

.cont-img {
  display: flex;
  justify-content: center;
  gap: 3em;
  flex-wrap: wrap;
}

.circulo-img {
  width: 14em;
  height: 14em;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.circulo-img:hover { transform: scale(1.08); }

/* =================== TITULOS DE SECCIONES (PRO) =================== */
.titulo h2, .subtitulo1 h2, .titulo-pagina {
  text-align: center;
  font-size: 2.2em;
  margin: 1.5em 0 1em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;

  background: linear-gradient(90deg, var(--azul), var(--amarillo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* =================== SECCIÓN NOSOTROS =================== */
.nosotros {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 2em;
  flex-wrap: wrap;
}

.nosotros .f1, .nosotros .f2 {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  background: var(--blanco);
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.nosotros h2 {
  color: var(--azul);
  margin-bottom: 1em;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* =================== POR QUÉ ESCOGERNOS =================== */
.resenas {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  padding: 2em;
}

.resenas .images {
  background: var(--blanco);
  flex: 1 1 300px;
  max-width: 320px;
  padding: 1.5em;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.resenas .images:hover { transform: translateY(-8px); }

.resenas img {
  width: 80px;
  height: 80px;
  margin-bottom: 1em;
}

.resenas h3 {
  color: var(--azul);
  font-size: 1.3em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.resenas p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--gris-texto);
}

/* =================== FOOTER =================== */
.footer {
  background: var(--azul);
  color: var(--blanco);
  padding: 3em 2em 1em;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col { flex: 1; min-width: 250px; }
.footer-logo { max-width: 150px; margin-bottom: 1em; }

.footer h3 {
  color: var(--amarillo);
  margin-bottom: 0.5em;
}

.footer p { margin: 0.4em 0; font-size: 0.95em; }

.footer .footer-desc {
  font-size: 0.9em;
  line-height: 1.5;
  color: #dcdde1;
  max-width: 250px;
}

.footer .footer-col svg {
  vertical-align: middle;
  margin-right: 6px;
  fill: var(--amarillo);
}

.footer-bottom {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.85em;
  color: #dcdde1;
}
.footer-bottom p { margin: 0.3em 0; }

/* =================== BOTONES FLOTANTES =================== */
.whatsapp-fijo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.whatsapp-fijo svg { width: 24px; height: 24px; }
.whatsapp-fijo:hover { transform: scale(1.08); }

#ir-menu {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 45px;
  height: 45px;
  background: var(--azul);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s;
}
#ir-menu:hover { background: var(--azul-claro); }

/* ===== Páginas de productos ===== */
.grid-productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* 🔹 centra las tarjetas */
  gap: 2rem;                /* 🔹 espacio uniforme entre todas */
  padding: 2em;
}

.producto-card {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  padding: 1.5em;
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* 🔹 Tamaño fijo (todas iguales) */
  width: 260px;
  max-width: 100%;
}


.producto-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1em;
  border-radius: 8px;
  background: #f9f9f9;
  padding: 10px;
}



.producto-card:hover {
  transform: translateY(-6px);
}


.producto-card h3 {
  color: var(--azul);
  margin: 0.5em 0;
  font-weight: 700;
}


.producto-card p {
  font-size: 0.95em;
  color: var(--gris-texto);
  line-height: 1.4;
}


/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .nosotros { flex-direction: column; align-items: center; }
  .resenas { flex-direction: column; align-items: center; }
  .encabezado {
    flex-direction: column;
    text-align: center;
    gap: 0.6em;
    padding: 0.8em 1em;
  }
  .encabezado .logo-desktop { display: none; }
  .logo-mobile { display: inline-block; height: 48px; }
  .hamburger { display: inline-block; position: absolute; right: 12px; top: 12px; z-index: 1100; }
}

/* =================== ESTILO DESCRIPCION =================== */
.descripcion {
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #2c3e50;
  text-align: justify;

  /* Fondo suave en vez de borde */
  background: #ffffff;
  border-radius: 10px;

  /* Sombra ligera para darle un poco de relieve sin exagerar */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  /* Tipografía más elegante */
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* =================== FIN =================== */
.miniaturas {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.miniaturas img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.miniaturas img:hover {
  transform: scale(1.1);
  border: 2px solid var(--azul);
}

/* =================== RESPONSIVE MÓVIL =================== */
@media (max-width: 600px) {

  /* Encabezado */
  .encabezado {
    flex-direction: column;
    align-items: center;
    padding: 1em;
    text-align: center;
    
  }

  .encabezado h1 {
    position: static;
    transform: none;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 0.5em;
    animation: fadeDownMobile 1s ease forwards;
  }

  @keyframes fadeDownMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hamburger {
    top: 10px;
    right: 10px;
    font-size: 1.8rem;
  }

  /* Tarjetas de productos */
  .grid-productos {
    flex-direction: column;
    align-items: center;
    padding: 1em;
    gap: 1.5rem;
  }

  .producto-card {
    width: 90%;
    max-width: 350px;
  }

  .producto-card img {
    height: auto;
    max-height: 180px;
  }

  /* Sección Nosotros */
  .nosotros {
    flex-direction: column;
    padding: 1em;
    gap: 1em;
  }

  .nosotros .f1, .nosotros .f2 {
    width: 100%;
    max-width: 100%;
  }

  /* Reseñas */
  .resenas {
    flex-direction: column;
    padding: 1em;
    gap: 1.2em;
  }

  .resenas .images {
    width: 100%;
    max-width: 100%;
  }

  /* Descripción */
  .descripcion {
    margin: 20px 15px;
    padding: 15px;
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5em;
  }

  .footer-col {
    min-width: 100%;
  }

  iframe {
    width: 100% !important;
    height: 200px;
  }

  /* Imágenes redondas */
  .circulo-img {
    width: 10em;
    height: 10em;
  }
}
