/* Fuentes personalizadas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Roboto+Slab:wght@400;600&display=swap');

/* Fondo y tipografía general */
body {
  font-family: 'Inter', sans-serif;
  background-color: #000000; /* Fondo negro */
  color: #ffffff; /* Texto blanco para párrafos */
  margin: 0;
  padding: 0;
}

/* Tipografía para títulos */
h1, h2, h3, .navbar-brand {
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  color: #ffffff; /* Títulos en blanco */
}

/* Subtítulos */
h4, h5, h6 {
  color: #59A0EB; /* Subtítulos en azul claro */
}

/* Navbar */
.navbar {
  background: linear-gradient(to bottom, #07519E, #011C66); /* Degradado horizontal */
}
.navbar .nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
}
.navbar .nav-link:hover {
  color: #0073EB; /* Color hover */
}

/* Footer */
footer {
  background: linear-gradient(to bottom, #011C66, #07519E); /* Degradado igual al header */
  color: #ffffff;
}

/* Botones */
.btn-primary {
  background-color: #0343FD;
  border: none;
}
.btn-primary:hover {
  background-color: #59A0EB;
  color: #000000;
}

/* Carrusel */
.carousel-img {
  height: 20vh;
  object-fit: contain;
}

/* Formularios */
form .form-label {
  font-weight: 600;
  color: #ffffff;
}
input, textarea {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #cccccc;
}
input:focus, textarea:focus {
  background-color: #2a2a2a;
  border-color: #0343FD;
  color: #ffffff;
}

/* Alertas */
.alert-success {
  background-color: #2e7d32;
  color: #ffffff;
}
.alert-danger {
  background-color: #c62828;
  color: #ffffff;
}

/* Sección de noticias */
.seccion-noticias {
  background-color: #1a1a1a;
  color: #ffffff;
}
.seccion-noticias .card {
  background-color: #2a2a2a;
  border: none;
}
.seccion-noticias .card-title {
  color: #59A0EB; /* Subtítulo en azul claro */
}
.seccion-noticias .card-text {
  color: #dddddd;
}

/* Logo responsive */
.logo-img {
  height: 40px;
  width: auto;
}

@media (max-width: 576px) {
  .logo-img {
    height: 30px;
  }
}

/* Asegurar espacio superior por el navbar fijo */
body {
  padding-top: 70px; /* o ajusta según la altura real del navbar */
}

/* Cambiar color del ícono hamburguesa */
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* CLIENTES */
.grayscale-hover {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.grayscale-hover:hover {
  filter: grayscale(0%);
}

/* FAQ personalizada */
.faq-item {
  border-left: 4px solid #0343FD;
  padding-left: 1rem;
}

.pregunta {
  font-weight: 600;
  color: #59A0EB;
}

.respuesta {
  background-color: #1f1f1f;
  color: #e0e0e0;
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}


/*Portafolio*/
.tarjeta-servicio {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  position: relative;
  z-index: 5;
}

.tarjeta-imagen {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.tarjeta-servicio:hover .tarjeta-imagen {
  transform: scale(1.02);
}

/* Overlay de texto */
.overlay-texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  transition: max-height 1.4s ease, opacity 0.3s ease;
  overflow: hidden;
  max-height: 4rem;
}

.carousel-item {
  position: relative;
}


.overlay-texto h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.overlay-texto .descripcion {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* En escritorio: mostrar descripción solo al hacer hover */
@media (hover: hover) and (pointer: fine) {
  .tarjeta-servicio:hover .overlay-texto {
    max-height: 100%;
  }
  .tarjeta-servicio:hover .descripcion {
    opacity: 1;
  }
}

/* En móvil: mostrar todo siempre */
@media (max-width: 768px) {
  .overlay-texto {
    max-height: 100%;
  }
  .overlay-texto .descripcion {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .tarjeta-servicio {
    height: 180px;
  }
}


/* Animaciones al hacer scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

#testimonios blockquote {
  font-size: 1.25rem;
  font-style: italic;
}

#testimonios .carousel-control-prev-icon,
#testimonios .carousel-control-next-icon {
  background-color: #0343FD;
  border-radius: 50%;
  padding: 10px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 1.8rem;
  padding: 12px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

/* Estética personalizada del modal */
.modal-content {
  border-radius: 12px;
  border: 2px solid #ffffff;
  background-color: #1a1a1a;
}

/* Fade in/out más suave */
.modal.fade .modal-dialog {
  transition: transform 0.2s ease-out, opacity 0.2s ease-in-out;
  transform: translateY(-20px);
  opacity: 0;
}
.modal.fade.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

