body {
    margin: 0;
    font-family: Alexandria, sans-serif;
    background: white;
}

.container {
    width: 1140px;
    margin: auto;
}

/* HEADER */

header {
    height: 86px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 44px;
}

.menu {
    display: flex;
    gap: 40px;
}

.menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
}

/* HERO (pagina loteo) */

.hero {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.hero img {
    object-fit: cover;
    width: 100%;
    border-radius: 30px;
}

.hero-left {
    position: relative;
}

.hero-left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-right img {
    aspect-ratio: 16 / 9;
}

/* INFO */

.info {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title {
    font-weight: 700;
    font-size: 32px;
    color: #57720c;
    margin-top: 10px;
    margin-bottom: 20px;
}

.masterplan {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masterplan .title {
    text-align: center;
}

.masterplan img {
    width: 80%;
    border-radius: 20px;
}

.text {
    line-height: 25px;
}

/* MAP */

.map {
    margin-top: 80px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
}

/* CTA */

.cta {
    text-align: center;
    margin: 80px 0;
}

.cta a {
    background: #9abd28;
    padding: 14px 30px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta a:hover {
    background: #86a522;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(154, 189, 40, 0.4);
}

/* FOOTER */

footer {
    background: rgba(49, 65, 2, 0.17);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    font-size: 13px;
    line-height: 20px;
}

.social {
    display: flex;
    gap: 15px;
}

.social img {
    width: 35px;
}

/* ================================= */
/* LOADER */
/* ================================= */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #9abd28;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ================================= */
/* HOME PAGE */
/* ================================= */

/* HERO HOME */

.hero-home {
    height: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero-home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-home-content {
    color: white;
    text-align: left;
    width: 1140px;
    z-index: 1;
}

.hero-home-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-home-content p {
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    align-items: center;
}

.hero-buttons .btn-green {
    margin-right: -40px;
    padding-right: 50px;
    z-index: 1;
    position: relative;
}

.hero-buttons .btn-dark {
    z-index: 2;
    position: relative;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

.btn-green {
    background: #9abd28;
    color: white;
}

.btn-dark {
    background: #314102;
    color: white;
}

/* SOBRE NOSOTROS */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-top: 80px;
}

.about h4 {
    font-weight: 500;
    margin-bottom: 10px;
}

.about h2 {
    color: #57720c;
    font-size: 28px;
}

.about-right {
    padding-top: 50px;
}

.about-right p {
    line-height: 24px;
}

/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 80px;
}

.stat {
    border-top: 2px solid #57720c;
    padding-top: 20px;
}

.stat h3 {
    font-size: 32px;
    margin: 10px 0;
}

/* GALERIA */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.gallery img {
    width: 100%;
    border-radius: 12px;
}

/* DESARROLLOS */

.desarrollos {
    margin-bottom: 80px;
}

.desarrollos h4 {
    margin-bottom: 5px;
}

.desarrollos h2 {
    color: #57720c;
}

.cards {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 40px;
}

/* CARD LOTEOS */

.card {
    width: 260px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    color: white;
    padding: 20px;
}

.card-footer {
    background: white;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    color: black;
    font-weight: 500;
}

/* ================================= */
/* LOTES PAGE */
/* ================================= */

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 650px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-lotes {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    margin-bottom: 40px;
}

.info-table td {
    padding: 15px 0;
    border-bottom: 1px solid #57720c;
    font-size: 15px;
}

.info-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.why-invest h3 {
    color: #57720c;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

.reasons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    margin-bottom: 60px;
}

.reason {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.reason svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #57720c;
}

.reason p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.finance-card {
    background: white;
    border-radius: 40px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
    border: 1px solid #f0f0f0;
}

.finance-card h3 {
    color: #57720c;
    font-size: 24px;
    margin: 0 0 5px 0;
}

.finance-card > p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #555;
}

.finance-card .price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.finance-card .installments {
    font-size: 20px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 5px;
}

.progress-bar {
    height: 4px;
    background: #57720c;
    border-radius: 2px;
    margin: 30px 0;
    position: relative;
}

.progress-bar::before,
.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #57720c;
    border-radius: 50%;
}

.progress-bar::before {
    left: 0;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #57720c;
    border-radius: 50%;
    display: block;
}

.progress-bar::after {
    right: 0;
}

.finance-card .btn-green {
    display: inline-block;
    background: #57720c;
    color: white;
    padding: 16px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 35px;
    width: 100%;
    box-sizing: border-box;
}

.finance-card .reserva,
.finance-card .anticipo {
    margin-bottom: 25px;
}

.finance-card .reserva h4,
.finance-card .anticipo h4 {
    font-size: 20px;
    color: #57720c;
    margin: 0 0 5px 0;
}

.finance-card .reserva p,
.finance-card .anticipo p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.finance-card .anticipo p {
    font-weight: 500;
    font-size: 15px;
}

.masterplan-lotes {
    margin-top: 40px;
}

.masterplan-lotes .title {
    text-align: left;
    margin-bottom: 30px;
}

.masterplan-lotes img {
    width: 100%;
    border-radius: 0;
}

.map-lotes {
    margin-top: 80px;
}

.map-lotes .title {
    margin-bottom: 30px;
}

.map-lotes iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
}

/* ================================= */
/* CONTACT PAGE */
/* ================================= */

.contact-section {
    margin-top: 60px;
    margin-bottom: 100px;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-icon {
    width: 40px;
    margin-bottom: 20px;
}

.contact-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.contact-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #57720c;
    margin: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 26px 20px 10px 20px;
    border: none;
    border-radius: 12px;
    background-color: #ebebeb;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #e0e0e0;
}

.form-group textarea {
    height: 200px;
    resize: none;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s ease all;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 8px;
    font-size: 12px;
    color: #57720c;
    font-weight: 600;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

.btn-submit {
    background-color: #9abd28;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #86a522;
}

/* ================================= */
/* NOTICIAS PAGE */
/* ================================= */

.noticias-section {
    margin-top: 60px;
    margin-bottom: 100px;
}

.noticias-header {
    margin-bottom: 60px;
}

.noticias-icon {
    width: 40px;
    margin-bottom: 20px;
}

.noticias-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.noticias-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #57720c;
    margin: 0;
    line-height: 1.4;
}

.noticias-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.noticia-card {
    width: 280px;
    background: white;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.noticia-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.noticia-content {
    padding: 30px;
    flex-grow: 1;
}

.noticia-barrio {
    font-size: 16px;
    font-weight: 700;
    color: #57720c;
    margin: 0 0 15px 0;
}

.noticia-texto {
    font-size: 18px;
    font-weight: 500;
    color: black;
    margin: 0;
    line-height: 1.4;
}

.noticia-btn {
    display: block;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s;
}

.noticia-btn:hover {
    background-color: #f9f9f9;
}

/* ================================= */
/* MODAL NOTICIAS */
/* ================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 0;
    border-radius: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    animation-name: animatetop;
    animation-duration: 0.4s;
    overflow: hidden;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-modal {
    color: white;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-modal:hover,
.close-modal:focus {
    color: #ddd;
    text-decoration: none;
    cursor: pointer;
}

.modal-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.modal-content .noticia-barrio {
    padding: 30px 30px 10px 30px;
    margin: 0;
    flex-shrink: 0;
}

.modal-content .noticia-texto {
    padding: 0 30px 20px 30px;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-body {
    padding: 0 30px 40px 30px;
    line-height: 1.6;
    color: #444;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 15px;
}

/* ================================= */
/* FAQ PAGE */
/* ================================= */

.faq-section {
    margin-top: 60px;
    margin-bottom: 100px;
}

.faq-header {
    margin-bottom: 50px;
}

.faq-icon {
    width: 40px;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.faq-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #57720c;
    margin: 0;
    line-height: 1.4;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.faq-item {
    padding-bottom: 20px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: black;
    cursor: pointer;
    text-align: left;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 500;
    color: #57720c;
    transition: background-color 0.3s;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 2px;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    transition: grid-template-rows 0.3s ease-out, margin-top 0.3s ease-out;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    margin-top: 15px;
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.faq-cta {
    text-align: center;
}

/* ================================= */
/* RESPONSIVE DESIGN */
/* ================================= */

@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .hero-home-content {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 992px) {
    .about {
        gap: 40px;
    }
    .cards {
        gap: 40px;
        flex-wrap: wrap;
    }
    .info-lotes {
        grid-template-columns: 1fr;
    }
    .finance-card {
        position: static;
        margin-top: 40px;
    }
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    header {
        height: auto;
        padding: 10px 0;
    }
    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        grid-template-columns: 1fr;
        margin-top: 140px;
    }
    .hero-left img {
        position: static;
        height: auto;
    }
    .info {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-home {
        height: auto;
        padding: 150px 0 80px 0;
    }
    .hero-home-content h1 {
        font-size: 32px;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        margin-right: 0;
        text-align: center;
    }
    .about {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    .about-right {
        padding-top: 0;
    }
    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .carousel {
        height: 300px;
    }
    .map iframe, .map-lotes iframe {
        height: 300px;
    }
    .noticias-grid {
        grid-template-columns: 1fr;
    }
}

/* WHATSAPP BUTTON */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-button img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.whatsapp-button img:hover {
    transform: scale(1.1);
}
