/* --- CONFIGURACIÓN GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* ELIMINAR LÍNEAS AZULES Y SUBRAYADOS DE ENLACES */
a {
    text-decoration: none !important;
    color: inherit;
    outline: none !important;
}

body {
    background-color: #fcfcfc;
    color: #333333;
    line-height: 1.8;
}

/* --- NAVEGACIÓN --- */
.navbar {
    background: #ffffff; 
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2C3E50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.logo-text span {
    color: #F26B22;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    color: #333333;
    margin-left: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #F26B22; 
}

.btn-cotizar-nav {
    background: #F26B22;
    color: white !important; 
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: background 0.3s, transform 0.2s;
    margin-left: 15px !important; 
}

.btn-cotizar-nav:hover {
    background: #D35400;
    transform: translateY(-2px);
}

/* --- HERO SECTION (PORTADA A PANTALLA COMPLETA) --- */
.hero {
    min-height: 94vh !important; 
    background-color: #000000;
    
    /* Ruta corregida para CSS: ../img/ */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url('../img/constructora\ francisco\ aranda2.JPG') !important; 
    
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem; 
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6); 
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: #f1f1f1;
}

.btn-saber-mas {
    background: #F26B22;
    color: white;
    padding: 18px 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
}

.btn-saber-mas:hover {
    background: #D35400;
    transform: translateY(-3px);
}

/* --- CLASES GENERALES --- */
.container {
    padding: 100px 5%;
    max-width: 1250px;
    margin: 0 auto;
}

.bg-light {
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: #2C3E50;
    font-weight: 800;
    text-transform: uppercase;
}

.gold-divider {
    width: 70px;
    height: 4px;
    background-color: #F26B22;
    border: none;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- SECCIÓN SOMOS --- */
.somos-intro {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 50px;
    color: #555555;
    font-size: 1.15rem;
}

/* CAROUSEL */
.carousel-wrapper {
    position: relative;
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel img {
    scroll-snap-align: center;
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 62, 80, 0.8);
    color: white;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.8rem;
    transition: 0.3s;
    border-radius: 6px;
}

.carousel-btn:hover { background: #F26B22; }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* STATS */
.stats-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-box-img {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.stat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 84, 0, 0.82); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.stat-overlay h3 {
    font-size: 2.8rem;
    font-weight: 800;
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 35px;
}

/* CLAVE: Centrar la tercera tarjeta de servicios en PC */
.services-grid .service-card:last-child:nth-child(odd) {
    grid-column: span 2;
    width: calc(50% - 17.5px); /* Mitad del ancho menos el espacio del medio */
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    padding: 50px 35px;
    border-top: 5px solid #F26B22;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-card h3 { margin-bottom: 20px; color: #2C3E50; font-size: 1.4rem; }

/* --- SECCIÓN ELECTRICIDAD (MINIMALISTA) --- */
.electric-content-clean {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.electric-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.electric-item-min {
    background: white;
    padding: 35px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid #F26B22;
    transition: 0.3s;
}

.electric-item-min:hover { transform: scale(1.03); }
.electric-item-min i { font-size: 3rem; color: #F26B22; margin-bottom: 15px; }
.electric-item-min p { font-weight: 800; color: #2C3E50; }

/* --- PORTAFOLIO DE PROYECTOS --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 35px;
}

.portfolio-link { display: block; }

.portfolio-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid #EAEAEA;
    transition: 0.3s;
    height: 100%;
}

.portfolio-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(242, 107, 34, 0.15); }

.portfolio-img { height: 260px; overflow: hidden; background: #eee; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.07); }

.portfolio-info { padding: 30px; }
.portfolio-info h3 { color: #2C3E50; margin-bottom: 15px; transition: 0.3s; }
.portfolio-link:hover .portfolio-info h3 { color: #F26B22; }

.btn-detalle {
    color: #F26B22 !important;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 15px;
    border-bottom: 2px solid transparent;
}
.portfolio-card:hover .btn-detalle { border-bottom: 2px solid #F26B22; }

/* --- FAQ / ACORDEÓN --- */
.accordion-item { border-bottom: 1px solid #EAEAEA; }

.accordion-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 30px 0;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C3E50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn .icon {
    background: #F26B22;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
}

.accordion-content { display: none; padding-bottom: 30px; color: #666; }

/* --- SECCIÓN CONTACTO Y FORMULARIO --- */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.info-block {
    margin-bottom: 45px;
    padding-left: 25px;
    border-left: 4px solid #F26B22;
}

.info-block h3 { font-size: 1.5rem; margin-bottom: 15px; color: #2C3E50; }
.contact-name { font-size: 1.3rem; font-weight: 700; color: #F26B22; }

.contact-list { list-style: none; margin-top: 15px; }
.contact-list li { margin-bottom: 15px; display: flex; align-items: center; }
.contact-list i { color: #2C3E50; margin-right: 20px; width: 20px; text-align: center; font-size: 1.3rem; }

.social-icons-contact { display: flex; flex-direction: column; gap: 20px; margin-top: 15px; }
.social-icons-contact a { font-weight: 600; transition: 0.3s; }
.social-icons-contact a:hover { color: #F26B22; }

/* ELIMINAR EL AZUL DEL FORMULARIO */
.pro-form input, .pro-form textarea, .select-clean {
    width: 100%;
    background: #ffffff;
    border: 1px solid #D1D1D1;
    padding: 18px;
    margin-bottom: 25px;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: 0.3s;
}

/* FOCO NARANJA PROFESIONAL (SIN AZUL) */
.pro-form input:focus, .pro-form textarea:focus, .select-clean:focus {
    outline: none !important;
    border-color: #F26B22 !important;
    box-shadow: 0 0 10px rgba(242, 107, 34, 0.15) !important;
}

.btn-submit {
    background: #2C3E50;
    color: white;
    border: none;
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover { background: #F26B22; transform: translateY(-2px); }

/* --- FOOTER --- */
.pro-footer {
    background: #1A1F24;
    color: #cccccc;
    padding: 80px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #F26B22;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: white; padding-left: 5px; transition: 0.3s; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333333;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

/* =========================================
   --- RESPONSIVO (TABLETS Y CELULARES) --- 
   ========================================= */

@media (max-width: 992px) {
    .contact-split, .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    
    .stats-horizontal { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    
    .navbar { 
        flex-direction: column; 
    }
    
    .nav-links { 
        margin-top: 20px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    
    .nav-links li a { 
        margin: 5px 15px; 
    }
}

/* Para Celulares Pequeños */
@media (max-width: 600px) {
    .container { 
        padding: 40px 5%; 
    } 
    
    /* --- MENÚ GENERAL CELULAR --- */
    .navbar {
        display: block !important; 
        padding: 15px 5%;
        position: relative !important; 
    }
    .logo-text {
        display: block;
        text-align: center;
        font-size: 1.1rem;
        white-space: normal; 
        margin-bottom: 15px; 
        line-height: 1.3;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; 
        gap: 6px; 
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .nav-links li {
        width: 32%; 
        list-style: none;
    }
    .nav-links li a {
        display: block;
        text-align: center;
        margin: 0;
        font-size: 0.65rem; 
        padding: 8px 2px;
        background: #f4f6f8; 
        border: 1px solid #e9ecef;
        border-radius: 4px;
        font-weight: 700;
    }
    .nav-links li:last-child {
        width: 100%; 
    }
    .nav-links li a.btn-cotizar-nav {
        background: #F26B22 !important; 
        color: white !important;
        border: none;
        padding: 10px;
        font-size: 0.8rem;
        margin-top: 5px;
    }

    /* =======================================================
       --- TRUCO MAGICO: SOLO PARA LAS PÁGINAS DE PROYECTOS --- 
       ======================================================= */
    
    /* 1. Ocultar TODOS los botones (incluyendo Cotizar) y dejar solo el logo */
    body:has(.project-main-layout) .nav-links {
        display: none !important;
    }

    /* 2. Quitar el espacio inferior del logo ya que no hay botones abajo */
    body:has(.project-main-layout) .logo-text {
        margin-bottom: 0 !important;
    }

    /* 3. Invertir el orden (Información arriba, Fotos abajo) */
    .project-main-layout {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 25px;
    }
    .project-info-side {
        margin-bottom: 0 !important; 
    }
    /* ======================================================= */

    /* --- PORTAFOLIO A 2 COLUMNAS --- */
    .portfolio-grid { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px; 
    }
    .portfolio-card {
        font-size: 0.75rem; 
    }
    .portfolio-img { 
        height: 130px; 
    }
    .portfolio-info { 
        padding: 15px 10px; 
    }
    .portfolio-info h3 { 
        font-size: 0.85rem; 
        margin-bottom: 8px; 
        line-height: 1.2;
    }
    .btn-detalle { 
        font-size: 0.7rem; 
        margin-top: 5px; 
    }

    /* --- SERVICIOS EN CELULAR (1 COLUMNA PARA LECTURA) --- */
    .services-grid { 
        grid-template-columns: 1fr !important; 
    }
    .services-grid .service-card:last-child:nth-child(odd) {
        grid-column: span 1;
        width: 100%; /* Resetea el centrado del PC para celular */
    }
    .service-card {
        padding: 25px 20px; 
    }
    .service-card h3 { 
        font-size: 1.1rem; 
        margin-bottom: 10px; 
    }

    /* --- RESTO DEL CELULAR --- */
    .stats-horizontal { 
        grid-template-columns: 1fr; 
    } 
    
    .hero { min-height: 85vh !important; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-header h2 { font-size: 1.8rem; }
    
    .btn-saber-mas { 
        padding: 15px 30px; 
        font-size: 0.9rem; 
    }
    
    .carousel img { 
        height: 300px; 
    } 
    
    .contact-split { gap: 30px; }
    .info-block { 
        padding-left: 15px; 
        margin-bottom: 30px; 
    }
}