/* Tipografía */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #feffff;
  scroll-behavior: smooth;
}

/* Playfair Display para títulos o destacados */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}
h1{
  font-weight: bolder;
  font-size: 3rem;
}
h2{
  font-weight: bold;
  font-size: 2rem;
}


h4{
  font-weight: 600;
  font-size: 1rem;
}
/* Secciones */
.section {
  padding: 100px 0;
}
.text-white {
  color: white;
}
section {
  scroll-margin-top: 100px;
}



 /* Navbar base */
.navbar {
  background-color: #0173bd;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* transition: background-color 0.3s ease; */
}
.navbar-brand {
  margin-left: 90px;
}


/* Enlaces de la navbar */
.nav-link {
  color: #feffff !important;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background-color 0.1s ease, color 0.1s ease;
  border-radius: 5px;
}

/* Enlace activo al hacer scroll */
.nav-link.active {
  background-color: #ffffff;
  color: #000 !important;
  text-decoration: none;
}









/* Colores personalizados para secciones */
#inicio { background-color: #0284cb; color: #feffff; }
#nosotros { background-color: #feffff; color: #0173bd;}
#servicios { background-color: #8ec8e4; color: #feffff; }
#clientes { background-color: #feffff; color: #0173bd; }
/* #contacto { background-color: #8ec8e4; color: #feffff; } */

/* STYLE BOTONES */
.btn-primary {
  font-weight: 600; /* Muy negrita al hacer hover */
  transition: font-weight 0s ease;
}

.btn-primary:hover {
  font-weight: 600; /* Muy negrita al hacer hover */
  transition: font-weight 0s ease;
}

/* STYLE BOTONES */

/* INICIO SECCION INICIO */
#inicio {
  background-image: url('images/inicio.webp'); /* Ajusta el nombre y ruta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

#inicio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Oscurece el fondo para que el texto se lea bien */
  z-index: 0;
}

#inicio .container {
  position: relative;
  z-index: 1; /* Para que esté sobre el overlay */
}


.frase-animada {
  text-align: left;
  max-width: 800px;
  margin-top: 2.5rem;
  
}

.frase-animada p {
  font-size: 3.2rem;           /* tamaño de letra */
  font-weight: bolder;
  margin: 1rem 0;
  color: #ffffff;              /* color de fuente */
}




/* FIN SECCION INICIO */


/* IMG-NOSOTROS */
.img-nosotros {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* sombra suave y profunda */
  transition: box-shadow 0.3s ease;
  /* Opcional: un ligero efecto al pasar el mouse */
}

.img-nosotros:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* FIN NOSOTROS */



/* INICIO CARDS-SERVICIOS */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.card-servicios {
  position: relative;
  width: 100%;
  max-width: 512px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicios img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.card-servicios:hover img {
  filter: blur(3px) contrast(0.7) brightness(0.6);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-servicios:hover .card-overlay {
  opacity: 1;
}

.card-servicios:hover {
  transform: scale(1.03); /* Movimiento leve */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Sombra para vitalidad */
}

/* Responsive */
@media (max-width: 992px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}



/* FIN CCARDS-SERVICIOS*/

/* INICIO LISTA DENTRO DEL OVERLAY DE LA CARD */
.card-overlay .contenido-overlay {
  text-align: left;
  padding: 1rem 1.5rem;
  color: white;
  max-height: 100%;
  overflow-y: auto;
}

.card-overlay p {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.card-overlay ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.card-overlay li {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
/* FIN LISTA DENTRO DEL OVERLAY DE LA CARD */

/* INICIO BOTON WA */
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 66px;
  height: 66px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #25d366;
  padding: 8px;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
}

/* FIN BOTON WA */

/* INICIO FOOTER */
.footer-link {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0173bd;
}

.social-icon {
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    display: inline-block;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}
/* FIN FOOTER */

/* ====================== INICIO RESPONSIVE ====================== */

/* Ajustes de tipografía para pantallas pequeñas */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  h3 {
    font-size: 1.25rem;
    text-align: center;
  }

  h4 {
    font-size: 1rem;
    text-align: center;
  }
}

/* Padding de secciones reducido para pantallas pequeñas */
@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }
}

/* Ajustes para frase animada en #inicio */
@media (max-width: 768px) {
  .frase-animada {
    margin: 2rem auto;
    text-align: center;
  }

  .frase-animada p {
    font-size: 1.8rem;
    text-align: center;
  }
}

/* Imagen nosotros 100% fluida */
.img-nosotros {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Ajustes cards servicios para móviles */
@media (max-width: 992px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .card-servicios {
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
  }

  .card-overlay {
    padding: 0.5rem;
  }

  .card-overlay p {
    font-size: 1rem;
  }

  .card-overlay li {
    font-size: 0.85rem;
  }
}

/* Reducción de tamaño del botón WhatsApp en móviles */
@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}
@media (max-width: 991.98px) {
  .navbar-brand {
    margin: auto;
  }

  .navbar .navbar-toggler {
    position: absolute;
    right: 1rem;
  }
}
/* Evita scroll horizontal en dispositivos pequeños */
body {
  overflow-x: hidden;
}

/* ====================== FIN RESPONSIVE ====================== */
