/* css/styles.css - VERSIÓN FINAL CON FONDO Y 9 SERVICIOS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #2563eb; 
    --dark-blue: #1e3a8a;    
    --accent-orange: #f59e0b; 
    --card-radius: 30px;
}

body {
    font-family: 'Poppins', sans-serif;
    /* IMAGEN DE FONDO con filtro azul encima */
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(37, 99, 235, 0.8)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax (la imagen se queda quieta al bajar) */
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
}

/* El Contenedor Principal (Tarjeta Flotante) */
.main-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 1300px; /* Un poco más ancho para que quepan bien los servicios */
    border-radius: var(--card-radius);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    overflow: hidden; 
    margin: 0 auto; /* Centrado */
}

/* Navbar */
.navbar { padding: 20px 40px; }
.navbar-brand { font-weight: 700; color: var(--dark-blue) !important; font-size: 1.5rem; }
.nav-link { color: #64748b !important; font-weight: 500; margin-left: 20px; transition: color 0.3s; }
.nav-link:hover { color: var(--primary-blue) !important; }

/* Carrusel Hero (Portada) */
.carousel-hero-img {
    height: 500px; /* Altura fija del carrusel */
    object-fit: cover; /* La imagen se recorta para llenar el espacio sin deformarse */
    border-radius: 20px;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Fondo negro transparente para leer el texto */
    border-radius: 15px;
    padding: 20px;
    bottom: 40px;
}

.btn-cta {
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
}
.btn-cta:hover { background-color: var(--dark-blue); color: white; transform: translateY(-2px); }

/* Sección de Servicios (Grid de 9) */
/* --- NUEVA SECCIÓN DE SERVICIOS CON IMÁGENES DE FONDO --- */

.section-title {
    color: var(--dark-blue);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 50px;
}

/* Estilo Base de la Tarjeta con Imagen */
.service-card-image {
    position: relative;
    height: 300px; /* Altura fija para que se vean uniformes */
    border-radius: 20px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    /* IMPORTANTE: Esto agrega la sombra oscura para que se lea el texto */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5); 
}

.service-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 0 1000px rgba(37, 99, 235, 0.6); /* Al pasar el mouse se pone azulado */
}

/* Tipografía dentro de la tarjeta */
.service-card-image h5 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.service-card-image p {
    color: #e2e8f0; /* Blanco grisáceo */
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 2;
}

.service-icon-float {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3); /* Icono transparente decorativo */
    transition: all 0.3s;
}

.service-card-image:hover .service-icon-float {
    color: white;
    transform: scale(1.1);
}

/* --- IMÁGENES ESPECÍFICAS PARA CADA SERVICIO --- */
/* (Aquí cambié las URLs por fotos de obras reales de Unsplash) */

.bg-albanileria { background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=600&auto=format&fit=crop'); }
.bg-fontaneria  { background-image: url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?q=80&w=600&auto=format&fit=crop'); }
.bg-electricidad { background-image: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=600&auto=format&fit=crop'); }
.bg-pintura     { background-image: url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?q=80&w=600&auto=format&fit=crop'); }
.bg-tablaroca   { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=600&auto=format&fit=crop'); }
.bg-carpinteria { background-image: url('https://plus.unsplash.com/premium_photo-1664300494539-313eac2a6095?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.bg-pisos       { background-image: url('https://plus.unsplash.com/premium_photo-1705479742873-f826fe23a01c?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.bg-impermeabilizacion { background-image: url('https://images.unsplash.com/photo-1563174499-83c108efd397?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); } /* Techo */
.bg-tinacos     { background-image: url('https://images.unsplash.com/photo-1646488993053-8c182b628696?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); } /* Agua limpia */

/* Contacto y Botones */
.contact-section-modern { background-color: #f1f5f9; padding: 80px 40px; }
.form-control-modern { border: none; background: white; padding: 15px; border-radius: 10px; margin-bottom: 15px; }

/* Ajustes Móvil */
@media (max-width: 768px) {
    body { padding: 0; }
    .main-wrapper { border-radius: 0; }
    .carousel-hero-img { height: 300px; } /* Más chaparrito en celular */
}
/* --- AGREGADOS AL FINAL DE STYLES.CSS --- */

/* Sección de Logos (Aliados/Clientes) */
.logos-section {
    padding: 50px 40px;
    text-align: center;
    background-color: white; /* Fondo blanco limpio */
    border-bottom: 1px solid #f1f5f9;
}

.logo-placeholder {
    height: 80px;
    width: 100%;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    transition: all 0.3s;
}

.logo-placeholder:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Footer (Pie de Página) */
.footer-modern {
    background-color: #9ba6b6; /* Gris muy oscuro/Azul */
    color: #000000;
    padding: 60px 40px 20px 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
    display: block;
}

.footer-link {
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-blue);
    padding-left: 5px; /* Efecto de movimiento */
}

.social-icon {
    font-size: 1.2rem;
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--primary-blue);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}
/* --- ESTILOS PARA SECCIÓN NOSOTROS (Misión/Visión) --- */

.about-section {
    padding: 80px 40px;
    background-color: white;
}

.about-text {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
}

/* Tarjetas de Misión/Visión */
.value-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary-blue); /* Borde de color a la izquierda */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateX(10px); /* Se mueve un poco a la derecha al pasar el mouse */
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
}

.value-title {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
/* Estilos para los Logos Reales */
.logo-img {
    max-height: 80px; /* Altura máxima para que todos se vean parejos */
    max-width: 100%;
    object-fit: contain; /* Asegura que el logo no se deforme */
    filter: grayscale(10%); /* Los pone en blanco y negro */
    opacity: 1; /* Un poco transparentes para que no distraigan */
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-img:hover {
    filter: grayscale(0%); /* Recuperan su color original al pasar el mouse */
    opacity: 1; /* Se vuelven totalmente visibles */
    transform: scale(1.1); /* Crecen un poquito */
}