/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    color: #333;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #E74C3C;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Servicios */
.service-icon {
    font-size: 2.5rem;
    color: #E74C3C;
    margin-bottom: 20px;
}

.card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
}

/* Contacto */
.contact-info p {
    margin-bottom: 20px;
}





/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p.lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
/* Estilos para el logo del navbar */
.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Estilos para logos de clientes */
.client-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
    max-height: 80px;
    width: auto;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Ajustes para imágenes responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Hero image */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Carrusel mejorado */
#aliadosCarousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-item {
    padding: 20px 0;
    transition: transform 1.5s ease-in-out; /* Transición más lenta */
}

.client-logo {
    max-height: 120px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 10px;
}

/* Indicadores opcionales */
.carousel-indicators {
    bottom: -30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333;
    margin: 0 5px;
}

/* Estilos para el contenido SEO */
.seo-content {
    line-height: 1.8;
    color: #444;
}

.seo-content h2, 
.seo-content h3, 
.seo-content h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.seo-content ul {
    padding-left: 1.5rem;
}

.seo-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Estilos para la sección del mapa */
.map-container {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .map-container {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}


/* Redes Sociales Flotantes */
.social-float-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.social-float {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(230, 57, 70, 0.9); /* Fondo rojo Construferias */
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 5px;
    border: 1px solid #C1121F; /* Borde rojo más oscuro */
}

.social-float-icon {
    width: 40px;
    height: 40px;
    margin: 8px 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #E63946; /* Color rojo Construferias */
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid white;
}

.social-float-icon:hover {
    transform: scale(1.1) translateX(-5px);
    background: #C1121F; /* Rojo más oscuro al hover */
    color: white;
    box-shadow: -3px 3px 8px rgba(0, 0, 0, 0.3);
}

/* Versión móvil */
@media (max-width: 768px) {
    .social-float-container {
        top: auto;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 100%;
    }
    
    .social-float {
        flex-direction: row;
        justify-content: center;
        border-radius: 10px 10px 0 0;
        width: 100%;
        max-width: 100%;
        padding: 5px;
    }
    
    .social-float-icon {
        margin: 5px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Botón Enviar Mensaje – rojo Construferias */
#submitBtn.btn.btn-primary{
  background-color: #E63946;   /* rojo principal */
  border-color:     #E63946;
  color: #fff;
}

#submitBtn.btn.btn-primary:hover,
#submitBtn.btn.btn-primary:focus{
  background-color: #C1121F;   /* rojo más oscuro al hover/focus */
  border-color:     #C1121F;
  color: #fff;
}

/* estado deshabilitado (antes de aceptar términos) */
#submitBtn.btn.btn-primary:disabled,
#submitBtn.btn.btn-primary.disabled{
  background-color: #f3b1b7;   /* rojo claro deshabilitado */
  border-color:     #f3b1b7;
  color: #fff;
  opacity: 1;                  /* evita que Bootstrap lo ponga gris */
}


/* Link "Términos y la Política de Privacidad" en rojo Construferias */
#contactForm .form-check-label a,
#contactForm .form-check a {
  color: #E63946;              /* rojo principal */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#contactForm .form-check-label a:hover,
#contactForm .form-check a:hover,
#contactForm .form-check-label a:focus,
#contactForm .form-check a:focus {
  color: #C1121F;              /* rojo más oscuro al hover/focus */
  text-decoration-thickness: 2px;
}

#contactForm .form-check-label a:visited,
#contactForm .form-check a:visited {
  color: #E63946;              /* mantener rojo si ya fue visitado */
}

/* Accesibilidad: anillo de foco visible al navegar con teclado */
#contactForm .form-check-label a:focus-visible,
#contactForm .form-check a:focus-visible {
  outline: 2px solid #E63946;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Checkbox/Radio en rojo Construferias */
input[type="checkbox"],
input[type="radio"]{
  /* Soporte moderno (Chrome/Edge/Firefox/Safari) */
  accent-color: #E63946; /* rojo principal */
}

/* Fallback + Bootstrap 5 */
.form-check-input:checked{
  background-color: #E63946 !important;
  border-color: #E63946 !important;
}
.form-check-input:focus{
  border-color: #E63946 !important;
  box-shadow: 0 0 0 .25rem rgba(230,57,70,.25) !important;
}
.form-check-input:active{
  filter: brightness(95%);
}

/* (Opcional) Enlace dentro del texto de términos en rojo */
.form-check-label a{
  color: #E63946;
}
.form-check-label a:hover{
  color: #C1121F;
  text-decoration: underline;
}

