/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #00406B;
    --secondary-yellow: #FCB700;
    --secondary-green: #188652;
    --secondary-orange: #FE8D01;
    --secondary-gray: #738591;
    --white-color: #FFFFFF;
    --text-dark: #333;
    --bg-light: #f9f9f9;
    --font-family: 'Arial', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white-color);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: bold;
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-yellow);
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.cta-button:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Animación de Scroll --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header y Navegación --- */
.main-header {
    position: sticky;
    top: 15px;
    z-index: 1000;
    padding: 0 20px;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 110px;
    padding: 25px;
}
.logo img {
    height: 90px;
    width: auto;
    vertical-align: middle;
}
.main-nav .nav-links {
    list-style: none;
    display: flex;
}
.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--secondary-orange);
}
.header-cta {
    background-color: var(--secondary-green);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}
.header-cta:hover {
    background-color: var(--primary-color);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- Sección Hero con Video --- */
.hero {
    position: relative;
    color: var(--white-color);
    height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -125px;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 27, 49, 0.8);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Sección de Servicios --- */
.services-section { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card h3 { color: var(--primary-color); margin: 20px 0 10px 0; }
.service-card p { padding: 0 20px 20px 20px; font-size: 0.95rem; }

/* --- CTA Banner --- */
.cta-banner {
    background-color: var(--secondary-green);
    color: var(--white-color);
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-button-alt {
    display: inline-block;
    background-color: var(--white-color);
    color: var(--secondary-green);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}
.cta-button-alt:hover { background-color: var(--secondary-yellow); color: var(--primary-color); transform: scale(1.05); }

/* --- Sección de Sectores --- */
.sectors-section { background-color: var(--primary-color); padding: 80px 0; }
.sectors-section .text-light { color: var(--white-color); }
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; color: var(--white-color); }
.sector-card { background-color: rgba(255, 255, 255, 0.1); padding: 40px 20px; border-radius: 10px; text-align: center; border: 1px solid var(--secondary-yellow); }
.sector-card i { font-size: 3rem; margin-bottom: 20px; color: var(--secondary-yellow); }

/* --- Reviews Section --- */
.reviews-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    overflow-x: hidden;
}
.review-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
}
.quote-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--secondary-yellow);
    background-color: var(--white-color);
    padding: 0 10px;
}
.stars {
    margin-bottom: 15px;
    color: var(--secondary-orange);
    font-size: 1.2rem;
}
.review-card p {
    font-size: 1.05rem;
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}
.review-author {
    font-weight: bold;
    color: var(--primary-color);
}
.reviews-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* --- Clients Section --- */
.clients-section { padding: 60px 0; }
.clients-slider .swiper-wrapper { align-items: center; }
.clients-slider .swiper-slide { text-align: center; }
.clients-slider img {
    max-width: 150px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.clients-slider img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* --- FAQ Section --- */
.faq-section { padding: 100px 0; background: }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary-color);
}
.faq-question i { transition: transform 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 20px 0; }

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: url(img/fondo-contacto.jpg);
    background-attachment: fixed;
    background-size: cover;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
}
.contact-info {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px;
}
.contact-info h3 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.contact-info h3 strong {
    color: var(--secondary-yellow);
    display: block;
}
.contact-info p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}
.contact-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.contact-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.contact-benefits i {
    color: var(--secondary-green);
    margin-right: 10px;
    font-size: 1.2rem;
}
.contact-footer {
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
    margin-top: 20px;
}
.contact-form { padding: 40px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.input-group {
    display: flex;
    flex-direction: column;
}
.input-group.full-width {
    grid-column: 1 / -1;
}
.input-group label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-color);
}
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 64, 107, 0.1);
}
.contact-form .cta-button {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white-color);
    padding: 25px 0;
}
.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 1.2rem;
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 90px;
        right: 20px;
        background-color: var(--white-color);
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        width: 250px;
        padding: 10px 0;
    }
    .main-nav.active .nav-links {
        display: flex;
    }
    .main-nav .nav-links li {
        width: 100%;
        text-align: left;
    }
    .main-nav .nav-links a {
        padding: 15px 25px;
        display: block;
    }
    .menu-toggle {
        display: block;
    }
    .header-cta {
        display: none;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .sectors-grid { grid-template-columns: 1fr; }
    .main-footer .container { flex-direction: column; gap: 15px; }
    .form-grid { grid-template-columns: 1fr; }
}
/* --- Sección Por Qué Elegirnos --- */
.why-choose-us-section {
    padding: 100px 0;
    background-color: #fcfcfc !important;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px auto;
    color: var(--secondary-gray);
    font-size: 1.1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.comparison-card {
    padding: 30px;
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
}

.comparison-card .card-header {
    text-align: center;
    margin-bottom: 30px;
}

.comparison-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.comparison-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.comparison-card .benefits-list {
    list-style: none;
    padding: 0;
}

.comparison-card .benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.comparison-card .benefits-list i {
    font-size: 1.4rem;
    margin-right: 15px;
    margin-top: 2px;
}

/* Estilos para la tarjeta de "Problemas" */
.problems .card-icon {
    background-color: #fde2e2;
    color: #c94a4a;
}
.problems .benefits-list i {
    color: #c94a4a;
}
.problems h3 {
    color: var(--secondary-gray);
}


/* Estilos para la tarjeta de "Soluciones" (HOGAR FIRME) */
.solutions {
    border: 3px solid var(--primary-color);
    transform: scale(1.05); /* La hace destacar un poco */
}

.solutions .card-icon {
    background-color: #e0f2fe;
    color: var(--primary-color);
}

.solutions .benefits-list i {
    color: var(--secondary-green);
}

.cta-wrapper {
    text-align: center;
    margin-top: 50px;
}


/* --- Responsive para la sección --- */
@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .solutions {
        transform: scale(1); /* Remueve el efecto de escala en móvil */
    }
}
/* --- ESTILOS PARA PÁGINAS DE SERVICIO (Interiores) --- */

/* Hero de Página */
.page-hero {
    position: relative;
    height: 45vh; /* Altura más corta que el hero principal */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.page-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
}

/* Introducción del Servicio */
.service-intro {
    padding: 80px 20px;
    text-align: center;
}

.service-intro .intro-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Especialidades / Features del Servicio */
.service-features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.feature-card .feature-content {
    padding: 25px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Proceso del Servicio */
.service-process {
    padding: 100px 20px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.process-step .step-icon {
    font-size: 2.5rem;
    color: var(--secondary-green);
    margin-bottom: 20px;
    line-height: 1;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Galería de Proyectos */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Ajustes Responsive para Páginas de Servicio --- */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2.5rem;
    }
}