/*whatsapp*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
  display: block;
  filter: invert(1);
}


header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.253); /* Color negro con 50% de opacidad */
  z-index: 1; /* Asegura que esté por encima del contenido del header, pero debajo del contenido real */
}
/* Posicionamiento de imágenes en la portada */
.portada {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 400px;
  opacity: 0.9;
  animation: fadeInUp 1.5s ease forwards;
  z-index: 0;
}
@media (max-width: 576px) {
  .portada-izquierda {
      left: 0 !important;
      margin: 0 !important;

  }
  .portada-derecha {
    right: 0 !important;
    margin: 0 !important;

  }
}
  .portada-izquierda {
      left: 0;
      margin: -90px 80px;
  }

  .portada-derecha {
    right: 0;
    margin: -90px 80px;
  }

header.hero .container {
  position: relative;
  z-index: 1;
}
/* Paleta de colores */

:root {
  --azul-acerado: #1E3A5F;
  --amarillo-md: #F4C000;
  --amarillo-md-hover: #d1a300;
  --gris-claro: #f8f9fa;
  --gris-medio: #6c757d;
  --gris-oscuro: #343a40;
  --blanco: #fff;
  --azul-sombra: rgba(30, 58, 95, 0.15);
}

/* Reset y tipografía */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--gris-claro);
  color: var(--azul-acerado);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Navbar */
.navbar {
  background-color: var(--azul-acerado);
  box-shadow: 0 2px 8px var(--azul-sombra);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar:hover,
.navbar.scrolled {
  background-color: #162c48;
  box-shadow: 0 4px 15px var(--azul-sombra);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--amarillo-md);
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 50px;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}

.navbar-nav .nav-link {
  color: #cfd8dc;
  font-weight: 500;
  transition: color 0.3s ease, font-weight 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--amarillo-md);
  font-weight: 600;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--amarillo-md);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  filter: invert(100%);
}

/* Hero */
header.hero {
  background: linear-gradient(135deg, #6c757d 0%, #113254 100%);
  color: var(--gris-claro);
  padding: 8rem 0 6rem;
  text-align: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 605.72px;
}

header.hero h1 {
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

header.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}

header.hero .btn-primary {
  background-color: var(--amarillo-md);
  border: none;
  color: var(--azul-acerado);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s forwards;
  animation-delay: 0.9s;
  box-shadow: 0 6px 15px rgb(244 192 0 / 0.6);
}

header.hero .btn-primary:hover {
  background-color: var(--amarillo-md-hover);
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 10px 25px rgb(209 163 0 / 0.85);
}

/* Animación fadeInUp */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección Por qué elegirnos */
#porque-elegirnos {
  padding: 5rem 1rem 4rem;
  background: var(--blanco);
}

#porque-elegirnos h2 {
  color: var(--azul-acerado);
  font-weight: 700;
  margin-bottom: 3.5rem;
  text-align: center;
  font-size: 2.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.row{
  justify-content: center;
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--amarillo-md);
  margin-bottom: 1.3rem;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.3) rotate(15deg);
}

.feature-item {
    text-align: center;
    padding: 1rem 2rem;
    cursor: default;
    border-radius: 15px;
    background: #f9fafb;
    box-shadow: 0 6px 15px rgb(30 58 95 / 0.1);
    transition: box-shadow 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 1rem;
}

.feature-item:hover {
  box-shadow: 0 15px 40px rgb(30 58 95 / 0.2);
}

.feature-item h5 {
  color: var(--azul-acerado);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.feature-item p {
  color: var(--gris-medio);
  font-size: 1.05rem;
  flex-grow: 1;
}

/* Marcas */
#marcas {
  background-color: var(--azul-acerado);
  padding: 4rem 1rem;
  color: var(--amarillo-md);
  text-align: center;
  box-shadow: inset 0 10px 40px rgba(0, 0, 0, 0.3);
}

#marcas h2 {
  margin-bottom: 3rem;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 1.2px;
}

#marcas .marca-logo {
  max-height: 70px;
  filter: brightness(90%);
  transition: filter 0.3s ease, transform 0.3s ease;
  margin: 0 2rem;
  cursor: pointer;
}

#marcas .marca-logo:hover {
  filter: brightness(150%);
  transform: scale(1.1);
}

#marcas .marcas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0 auto;
}

/* Productos Destacados */
#productos {
  padding: 5rem 1rem 6rem;
  background: var(--blanco);
}

#productos h2 {
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--azul-acerado);
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 1.2px;
}

.card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: var(--blanco);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgb(0 0 0 / 0.22);
}

.card-title {
  color: var(--azul-acerado);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.card-text {
  color: var(--gris-medio);
  font-size: 1.05rem;
}

.card-img-top {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  height: 25rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Testimonios */
#testimonios {
  background-color: #fef8e1;
  padding: 5rem 1rem 7rem;
  text-align: center;
  box-shadow: inset 0 15px 60px rgba(244, 192, 0, 0.3);
}

#testimonios h2 {
  color: var(--azul-acerado);
  margin-bottom: 3.5rem;
  font-weight: 700;
  font-size: 2.8rem;
  letter-spacing: 1.2px;
}

.testimonial {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  color: var(--gris-oscuro);
  position: relative;
  padding: 1.8rem 2.5rem;
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.07);
  line-height: 1.6;
  font-size: 1.15rem;
  transition: box-shadow 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 20px 55px rgb(0 0 0 / 0.15);
}

.testimonial::before {
  content: "“";
  font-size: 5rem;
  position: absolute;
  left: 20px;
  top: -25px;
  color: var(--amarillo-md);
  opacity: 0.3;
  font-weight: 900;
  font-family: serif;
  pointer-events: none;
}

.testimonial-footer {
  margin-top: 1.3rem;
  font-weight: 700;
  color: var(--azul-acerado);
  font-size: 1.1rem;
}


/* Footer */
footer {
  background-color: var(--azul-acerado);
  color: var(--amarillo-md);
  padding: 3rem 1rem 2rem;
  font-weight: 500;
  box-shadow: 0 -4px 10px var(--azul-sombra);
  font-size: 0.95rem;
}

footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  color: var(--amarillo-md);
}

footer .footer-column {
  min-width: 220px;
  flex: 1 1 220px;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1.3rem;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--amarillo-md);
  padding-bottom: 0.3rem;
}

footer p,
footer a {
  color: var(--amarillo-md);
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.7rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--blanco);
  text-decoration: underline;
}

footer .social-icons a {
  font-size: 1.3rem;
  margin-right: 1rem;
  color: var(--amarillo-md);
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--blanco);
}

footer .footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255 255 255 / 0.25);
  padding-top: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #f7e081cc;
}

/* Responsive */
@media (max-width: 991px) {
  footer .footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  footer .footer-column {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  header.hero h1 {
    font-size: 2.4rem;
  }

  header.hero p {
    font-size: 1.15rem;
  }

  #marcas .marcas-container {
    gap: 1.5rem;
  }

  #marcas .marca-logo {
    max-height: 50px;
    margin: 0 1rem;
  }
}

/*contacto*/
.contacto-seccion h2 {
  color: var(--azul-acerado);
  font-size: 2.5rem;
}

.contacto-seccion form .form-label {
  font-weight: 600;
  color: var(--azul-acerado);
}

.contacto-seccion form .form-control {
  border-radius: 8px;
  border: 1px solid var(--gris-medio);
}

.contacto-seccion form .btn-primary {
  background-color: var(--amarillo-md);
  color: var(--azul-acerado);
  font-weight: 600;
  border: none;
}

.contacto-seccion form .btn-primary:hover {
  background-color: var(--amarillo-md-hover);
  color: #fff;
}


/*quienes somos*/

#quienes-somos h2 {
  color: var(--azul-acerado);
  font-weight: 700;
  margin-bottom: 3.5rem;
  text-align: center;
  font-size: 2.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#quienes-somos .bg-light {
  background-color: #f9fafb; /* Un blanco muy suave para resaltar */
}

#quienes-somos h3 {
  color: var(--azul-acerado);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1.2px;
}

#quienes-somos p {
  color: var(--gris-medio);
  font-size: 1.05rem;
  line-height: 1.5;
}

/*selects productos */
/* Estilos para los select dentro de las cards */
.card select.form-select {
  max-width: 100%;
  margin: 0 auto;
  border: 1.5px solid #007bff; /* color azul primario */
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.3s ease;
}

.card select.form-select:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Botones de consulta dentro de cards */
.card button.btn-success {
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.card button.btn-success:hover {
  background-color: #0b7a0b;
}

/* Margen extra para separar selects y botón */
.card-body label.form-label {
  margin-top: 1rem;
}

/* Responsive: para pantallas muy pequeñas */
@media (max-width: 576px) {
  .card select.form-select,
  .card button.btn-success {
    font-size: 0.9rem;
  }
}

/* ========== EFECTOS ANIMADOS DINÁMICOS ========== */
.animar {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.animado {
  opacity: 1;
  transform: translateY(0);
}

/* Portada con animación suave */
.portada {
  transition: opacity 1s ease-in-out;
}

/* Botones más vivos */
.btn-custom {
  transition: all 0.3s ease;
}
.btn-custom:hover {
  transform: scale(1.05);
  background-color: #e91e63;
  color: white;
}

/* Suavidad general */
section, .info-box, .servicio, .producto, footer {
  transition: all 0.8s ease;
}


/*animacion portada*/

.portada {
  transition: opacity 0.8s ease-in-out;
}

.hero h1, .hero p {
  transition: opacity 0.8s ease-in-out;
}

/*css asesora*/
.portada-asesora {
  object-fit: contain;
  width: 100%;
  height: auto;
}
/* En pantallas móviles */
@media (max-width: 768px) {
  .portada-izquierda,
  .portada-derecha {
    display: none !important; /* ocultar las normales */
  }

  .portada-movil {
    display: block !important; /* mostrar la móvil */
  }

  header.hero {
    display: flex;
    justify-content: center;
    
  }
}
.prod-head{
  min-height: auto !important;
}

/*galaria fotos*/ 
.galeria-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.galeria-section h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-height: 300px;
  max-height: 300px;
}

.contador-visitas img {
  width: 20px; /* Ajusta el tamaño que quieras */
  height: auto; /* Mantiene la proporción */
}
