/* ====================================================== */
/* 1. CONFIGURACIÓN GLOBAL Y VARIABLES                   */
/* ====================================================== */
:root {
    --primary-color: #CDAA82;
    --dark-color: #000;
    --dark-grey: #222222;
    --light-color: #FFFFFF;
    --grey-color: #f7f7f7;
    --text-color: #333333;
    --text-color-light: #dddddd;
    --font-family: 'Montserrat', sans-serif;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* <-- REGLA CLAVE AÑADIDA */
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    /* La regla aquí también ayuda, pero es más importante en <html> */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 1rem;
}
p:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 20px auto 50px;
}

.section-title-light {
    color: var(--light-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.section-title-light::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 20px 0 30px;
}

/* ====================================================== */
/* 2. HEADER Y NAVEGACIÓN                                 */
/* ====================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    z-index: 1000;
    padding: 2px 0;
    transition: padding 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--light-color);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* ====================================================== */
/* 3. SECCIÓN HERO CON VIDEO                             */
/* ====================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    color: var(--text-color-light);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* ====================================================== */
/* 4. OTRAS SECCIONES                                     */
/* ====================================================== */

/* --- 4.1 Sección Nosotros --- */
.about-section {
    padding: var(--section-padding);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* --- 4.2 Sección Servicios --- */
.services-section {
    padding: var(--section-padding);
    background-color: var(--grey-color);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: var(--light-color);
    padding: 40px 30px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.service-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.service-card:hover i {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* --- 4.3 Banner CTA --- */
.cta-banner-section {
    padding: 80px 0;
    background: var(--dark-color) url(https://www.transparenttextures.com/patterns/dark-denim-3.png);
    color: var(--light-color);
    text-align: center;
}
.cta-banner-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.cta-banner-content p {
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

/* --- 4.4 Reseñas --- */
.testimonials-section {
    padding: var(--section-padding);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.testimonial-card {
    background-color: var(--grey-color);
    padding: 40px;
    border-left: 5px solid var(--primary-color);
}
.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}
.testimonial-author {
    display: block;
    margin-top: 1.5rem;
    text-align: right;
    font-weight: 600;
    color: var(--dark-color);
}

/* --- 4.5 Proyectos --- */
.projects-section {
    padding: var(--section-padding);
    background-color: var(--light-color);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
    min-height: 500px;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--light-color);
    padding: 50px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* --- 4.6 FAQ --- */
.faq-section {
    padding: var(--section-padding);
    background-color: var(--grey-color);
}
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
    max-width: 1000px;
    margin: 0 auto;
}
.faq-question {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}
.faq-answer {
    font-size: 1rem;
    color: #555;
}

/* ====================================================== */
/* 5. FOOTER Y FORMULARIO                                 */
/* ====================================================== */
.main-footer-contact {
    padding-top: 100px;
    background-color: var(--dark-color);
    color: var(--light-color);
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.footer-contact-info p {
    color: var(--text-color-light);
    font-weight: 300;
    margin-bottom: 2rem;
}
.contact-details {
    list-style: none;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.contact-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}
.contact-details a {
    color: var(--light-color);
    font-weight: 400;
}
.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer-contact-form .form-group {
    margin-bottom: 1.5rem;
}
.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--dark-grey);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--light-color);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: #888;
}
.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.footer-contact-form button {
    width: 100%;
    font-size: 1.1rem;
}
.footer-bottom {
    text-align: center;
    padding: 30px 0;
    margin-top: 80px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

/* ====================================================== */
/* 6. ANIMACIONES                                         */
/* ====================================================== */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in-out forwards;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====================================================== */
/* 8. ESTILOS PARA EL MENÚ HAMBURGUESA                    */
/* ====================================================== */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-color);
    transition: all 0.3s ease-in-out;
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====================================================== */
/* 9. DISEÑO RESPONSIVE                                   */
/* ====================================================== */
@media (max-width: 992px) {
    .about-container,
    .testimonials-grid,
    .faq-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .about-text {
        text-align: center;
    }
    .ocultar
    {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    .section-title, .section-title-light {
        font-size: 2rem;
    }
    .hamburger {
        display: block;
    }
    .ocultar
    {
        display: none !important;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .main-nav a {
        font-size: 1.2rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .footer-contact-info {
        text-align: center;
    }
    .footer-contact-info .section-title-light::after {
        margin-left: auto;
        margin-right: auto;
    }
    .contact-details li {
        justify-content: center;
        text-align: left;
    }
}
.banner{
        filter: grayscale(100) !important;
}