/* ===================== Reset y estructura ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8;
    color: #333;
}

/* ===================== Header ===================== */
#header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    height: 80px;
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    background: transparent;
}

.logo img {
    width: 240px;
    height: auto;
    display: block;
    background: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #0e8270;
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    padding: 120px 20px 60px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: left;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 1;
    transition: opacity 3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 600px;
    z-index: 1;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.4rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0e8270;
    color: #fff;
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 1rem;
    line-height: 1;
}

.hero-btn:hover {
    background-color: #fbb934;
}

/* ===================== CONOCENOS ===================== */
.conocenos-section {
    background-color: #f3f3f3;
    padding: 100px 20px;
}

.conocenos-section h2 {
    font-size: 4.2rem !important;
    margin-bottom: 2rem;
    color: #222;
    text-align: center;
}

.conocenos-content {
    max-width: 1200px;
    margin: auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
}

.conocenos-content h2 {
    font-size: 2rem !important;
    margin: 2.5rem 0 1rem;
    color: #324e24;
    border-left: 4px solid #6caa4e;
    padding-left: 1rem;
    font-weight: 300;
    text-align: left !important;
}

.conocenos-content h3 {
    font-size: 1.7rem;
    font-weight: 350;
    margin: 2rem 0 1rem;
    color: #3d3d3d;
    border-left: 4px solid #fbb934;
    padding-left: 0.8rem;
    line-height: 1.4;
    text-align: left;
}

.conocenos-content p {
    margin-bottom: 1.5rem;
}

.conocenos-content ul {
    margin: 1rem 0 2rem 1.5rem;
    padding-left: 1rem;
    list-style: disc;
}

.conocenos-content ul li {
    margin-bottom: 0.8rem;
}

.conocenos-img {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.conocenos-img-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===================== MODELOS ===================== */
.section {
    padding: 80px 20px;
}

.section h2 {
    font-size: 4.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.modelo {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modelo:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.modelo img {
    width: 100%;
    height: auto;
    display: block;
}

.modelo-info {
    padding: 1.2rem;
}

.modelo-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.modelo-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Intro text de la sección */
.section-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    color: #444;
    text-align: center;
}

/* ===================== Contacto ===================== */
#contacto {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
}

#contacto h2 {
    text-align: center;
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: #222;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0e8270;
    outline: none;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: #0e8270;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #fbb934;
}

/* ===================== FAQ ===================== */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.faq-title {
    text-align: center;
    font-size: 4.2rem;
    margin-bottom: 1rem;
    color: #222;
    font-weight: 700;
    line-height: 1.2;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid #e8f4f8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    border-color: #0e8270;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.faq-question {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.faq-question::after {
    content: "+";
    font-size: 1.8rem;
    font-weight: 300;
    color: #0e8270;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0 0 15px 0;
    color: #555;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.highlight {
    font-weight: 600;
    color: #0e8270;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 20px 15px;
    }

    .faq-title {
        font-size: 4.2rem;
    }

    .faq-question {
        padding: 15px;
        font-size: rem;
    }
}

/* ===================== Footer ===================== */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1rem 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.hamburger {
    display: none;
}

.lang-switcher {
    margin-left: 1rem;
}

.lang-switcher img {
    width: 24px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lang-switcher img:hover {
    transform: scale(1.1);
}

/* Estilos adicionales específicos para el catálogo */
.catalogo-section {
    padding: 100px 20px;
    background-color: #f8f8f8;
}

.catalogo-section h2 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: #222;
    text-align: center;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: #444;
    text-align: center;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.gallery-slide {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.active-slide {
    display: block;
}

.house-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.house-info {
    padding: 2rem;
}

.house-title {
    color: #324e24;
    margin-top: 0;
    font-size: 2rem;
    border-left: 4px solid #6caa4e;
    padding-left: 1rem;
    font-weight: 300;
}

.house-description {
    line-height: 1.8;
    margin: 1.5rem 0;
    color: #444;
    font-size: 1.1rem;
}

.floor-plan {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border: 1px solid #ddd;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.gallery-nav {
    text-align: center;
    margin: 2rem 0;
}

.nav-btn {
    background-color: #0e8270;
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background-color: #fbb934;
}

.dot-container {
    text-align: center;
    padding: 1rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.active-dot {
    background-color: #0e8270;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.spec-item {
    flex: 1 1 200px;
    padding: 1rem;
    background-color: #f3f3f3;
    border-radius: 4px;
    font-size: 0.9rem;
}

.spec-item strong {
    color: #324e24;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .house-image {
        height: 300px;
    }

    .house-info {
        padding: 1.2rem;
    }

    .catalogo-section h2 {
        font-size: 2.5rem;
    }

    .spec-item {
        flex: 1 1 100%;
    }
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    #header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
    }

    /* ---- Hamburger ----*/
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto;
        padding: 0.5rem;
        position: relative;
        width: 32px;
        height: 24px;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #333;
        left: 0;
        transition: all 0.3s ease-in-out;
        border-radius: 2px;
    }

    .hamburger .bar:nth-child(1) {
        top: 0;
    }

    .hamburger .bar:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger .bar:nth-child(3) {
        bottom: 0;
    }

    .nav-open .hamburger .bar:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }

    .nav-open .hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-open .hamburger .bar:nth-child(3) {
        transform: rotate(-45deg);
        top: 50%;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 2rem;
        gap: 1rem;
        display: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        z-index: 998;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-open .nav-links {
        display: flex;
    }

    section[id] {
        scroll-margin-top: 300px;
    }

    .conocenos-img,
    .conocenos-img-left {
        float: none;
        display: block;
        max-width: 100%;
        margin: 1.5rem auto;
    }
}
