:root {
    --text-color: #666666;
    --cta-color: #ff5830;
    --bg-light: #ffffff;
    --font-main: "Roboto", sans-serif;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.main-container {
    width: 100%;
    /* max-width removed for full width background */
    margin: 0;
    background-color: #fff;
}

.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px; /* Safe padding for mobile */
}

/* ... existing element resets ... */

/* Hero Section */
/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom */
    flex-wrap: wrap;
    height: 100%;
    flex: 1;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-astoria {
    filter: invert(1) brightness(2);
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 600px;
    max-width: 60%;
}

/* New Info Box Style */
/* New Info Box Style */
.hero-info-box {
    background: #fff;
    padding: 20px;
    display: flex;
    gap: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-info-item {
    text-align: left;
}

.hero-info-item h4 {
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-info-item p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.hero-form-container {
    max-width: 350px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-bottom: 0;
}

/* Update section padding to use content container logic if needed, 
   but for sections with full width bg, we apply padding to section, 
   and content-container restricts width. */

.section-padding {
    padding: 60px 0; /* Vertical padding only */
}

/* Utilities for inner content */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Adjust Intro Grid, Gallery, etc to use section-inner logic implicitly or explicitly */
/* We will wrap inner contents in HTML with .content-container or similar */

@media (max-width: 768px) {
    .hero-section {
        min-height: auto; /* Let content dictate height */
        background-position: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch; /* Stack items */
        justify-content: flex-start;
        height: auto;
        padding: 60px 20px; /* More padding */
    }

    .hero-left-col {
        height: auto;
        min-height: 0;
        width: 100%;
        margin-bottom: 30px;
        align-items: center; /* Center logos */
        gap: 30px;
        max-width: 100%;
    }

    .hero-info-box {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    .hero-form-container {
        margin: 0 auto;
        max-width: 100%;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.section-padding {
    padding: 60px 40px;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 20px;
    }
}

/* Buttons */
.btn-cta,
.btn-primary {
    background-color: var(--cta-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    transition: background 0.3s;
    text-align: center;
}

.btn-cta:hover,
.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-color);
    border: 1px solid #ccc;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--cta-color);
    color: var(--cta-color);
}

/* Form Styles */
.lead-form h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--cta-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.checkbox-group label {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lead-form button {
    width: 100%;
    margin-top: 10px;
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h2 {
    color: var(--cta-color);
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1;
}

.intro-text p {
    margin-bottom: 30px;
}

.intro-buttons {
    display: flex;
    gap: 15px;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-buttons {
        flex-direction: column;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--cta-color);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--text-color);
    margin: 0 auto;
}

.bg-light {
    background-color: #f4f4f4;
}

/* Swiper Generic Overrides */
.swiper-button-next,
.swiper-button-prev {
    color: var(--cta-color);
}

.swiper-pagination-bullet-active {
    background: var(--cta-color);
}

/* Avance de Obra */
.avance-swiper {
    width: 100%;
    padding-bottom: 40px;
}

.avance-slide {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.avance-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    aspect-ratio: 16 / 9;
}

.avance-slide:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 5px;
}

/* Date Badge for Avance */
.avance-date {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: rgba(
        255,
        88,
        48,
        0.9
    ); /* var(--cta-color) with opacity */
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 5px 15px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 10;
    pointer-events: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.location-text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.location-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.location-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--cta-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: transparent;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.video-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Modal Gallery Swiper */
.modal-gallery-swiper {
    width: 100%;
    height: 80vh;
}

.modal-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery-swiper img {
    max-height: 100%;
    width: auto;
}

.modal-gallery-swiper .swiper-button-next,
.modal-gallery-swiper .swiper-button-prev {
    color: #fff;
}

/* Zonas Comunes */
/* Zonas Comunes */
.zonas-category {
    margin-bottom: 50px;
}

.zonas-category h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.zonas-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(150px, 1fr)
    ); /* Adaptive grid */
    gap: 30px;
    text-align: center;
}

.zona-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.zona-icon {
    width: 65px;
    height: 65px;
    background-color: #ddd; /* User will replace */
    border-radius: 50%;
}

.zona-item span {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* CTA Section */
.cta-section {
    background-color: var(--cta-color);
    color: #fff;
    text-align: center;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cta-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section .btn-cta {
    background-color: #fff;
    color: var(--cta-color);
}

.cta-section .btn-cta:hover {
    background-color: #f0f0f0;
}

/* Tabs Generic */
.tabs-container {
    width: 100%;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--cta-color);
    border-color: var(--cta-color);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.iframe-embed {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

/* Planos */
#planos-content img {
    margin: 0 auto;
    max-height: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Ubicacion */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-text h3 {
    color: var(--cta-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.location-map iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("assets/imgInicio-Astoria-legal.jpg"); /* Or Hero BG if different */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 20px;
}
.thank-you-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}
.thank-you-logos {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}
.thank-you-logos img {
    height: 60px;
    width: auto;
}

.thank-you-logos .logo-astoria {
    filter: invert(1) brightness(2);
}

.thank-you-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
}
.thank-you-card h1 {
    color: var(--cta-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.thank-you-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}
.thank-you-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
@media (min-width: 768px) {
    .thank-you-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .zonas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .iframe-embed {
        height: 300px;
    }
}
