/* ==========================================================================
   VARIABLES Y PALETA CORPORATIVA
   ========================================================================== */
:root {
    --azul-arrayanes: #1C3470;
    --azul-arrayanes-oscuro: #10214A;
    --dorado-arrayanes: #BE8C3C;
    --dorado-claro: #D2B46E;
    --beige-arena: #F4EFE6;
    --beige-calido: #EFE2CF;
    --blanco-calido: #FAF7F1;
    --grafito: #262626;
    --gris-suave: #6F6A60;

    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1280px;
    --section-padding: 120px 0;
    --section-padding-mobile: 80px 0;

    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-warm: 0 20px 40px rgba(28, 52, 112, 0.08);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--grafito);
    background-color: var(--blanco-calido);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ==========================================================================
   TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.15;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center !important;
}

.text-light {
    color: var(--blanco-calido) !important;
}

.text-blue {
    color: var(--azul-arrayanes) !important;
}

.text-light-gray {
    color: rgba(250, 247, 241, 0.7) !important;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gris-suave);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

.section-text {
    font-size: 1.125rem;
    color: var(--grafito);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.tag-light {
    color: var(--dorado-claro);
}

.tag-dark {
    color: var(--dorado-arrayanes);
}

.decorative-line {
    width: 80px;
    height: 2px;
    background-color: var(--dorado-arrayanes);
    margin: 2rem 0;
}

.decorative-line.center {
    margin: 2rem auto;
}

/* ==========================================================================
   MARCA / LOGO OFICIAL
   ========================================================================== */
.logo-link {
    display: block;
    line-height: 0;
}

.logo-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    transition: filter var(--transition), transform var(--transition), max-height var(--transition);
}

.header.scrolled .logo-img {
    max-height: 75px;
    filter: brightness(0) saturate(100%) invert(18%) sepia(43%) saturate(2375%) hue-rotate(213deg) brightness(96%) contrast(101%);
}

.logo-img:hover {
    transform: scale(1.02);
}

.footer-logo .logo-img {
    max-height: 120px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
    text-align: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--dorado-arrayanes);
    color: var(--blanco-calido);
}

.btn-primary:hover {
    background-color: #a67932;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(190, 140, 60, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco-calido);
    border: 1px solid var(--dorado-arrayanes);
}

.btn-secondary:hover {
    background-color: rgba(190, 140, 60, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 32px 0;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: var(--blanco-calido);
    padding: 16px 0;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(190, 140, 60, 0.2);
}

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

/* ==========================================================================
   2. HERO PRINCIPAL CON FORMULARIO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 33, 74, 0.95) 0%, rgba(16, 33, 74, 0.8) 40%, rgba(16, 33, 74, 0.2) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--blanco-calido);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--blanco-calido);
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   3. FORMULARIO INTEGRADO
   ========================================================================== */
.hero-form-wrapper {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}

.form-card {
    background-color: var(--blanco-calido);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.card-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--dorado-arrayanes);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.form-title {
    font-size: 2rem;
    color: var(--azul-arrayanes);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--gris-suave);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--azul-arrayanes);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2D9C8;
    border-radius: 4px;
    background-color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--grafito);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dorado-arrayanes);
    box-shadow: 0 0 0 3px rgba(190, 140, 60, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--dorado-arrayanes);
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--gris-suave);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

.error-message {
    display: none;
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 6px;
}

.form-group.error input,
.form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

.hidden {
    display: none !important;
}

.success-icon {
    color: var(--dorado-arrayanes);
    margin-bottom: 1.5rem;
}

.success-actions {
    margin-top: 2rem;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* ==========================================================================
   4. PROPUESTA DE VALOR
   ========================================================================== */
.benefits {
    background-color: var(--beige-arena);
    padding: var(--section-padding);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 4rem;
}

.benefit-card {
    background-color: var(--blanco-calido);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-warm);
}

.benefit-icon {
    color: var(--dorado-arrayanes);
    margin-bottom: 2rem;
}

.benefit-title {
    font-size: 1.75rem;
    color: var(--azul-arrayanes);
    margin-bottom: 1rem;
}

.benefit-text {
    color: var(--grafito);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   5. TIPOLOGÍAS DE VIVIENDA
   ========================================================================== */
.typologies {
    background-color: var(--blanco-calido);
    padding: var(--section-padding);
    border-top: 1px solid rgba(190, 140, 60, 0.15);
}

.typologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 4rem;
}

.typology-card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    padding: 0 0 32px;
    position: relative;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid rgba(226, 217, 200, 0.5);
    overflow: hidden;
}

.typology-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-warm);
    border-color: var(--dorado-arrayanes);
}

.typology-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--azul-arrayanes);
    color: var(--blanco-calido);
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    border: 2px solid var(--blanco-calido);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
    z-index: 2;
}

.typology-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f5f1eb;
}

.typology-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    padding: 12px;
}

.typology-card:hover .typology-image img {
    transform: scale(1.05);
}

.typology-body {
    margin-bottom: 2rem;
    padding: 24px 32px 0;
}

.typology-title {
    font-size: 1.85rem;
    color: var(--azul-arrayanes);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.typology-features {
    list-style: none;
    padding: 0;
}

.typology-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--grafito);
}

.typology-features li span {
    line-height: 1.4;
}

.list-icon {
    width: 18px;
    height: 18px;
    color: var(--dorado-arrayanes);
    flex-shrink: 0;
}

.typology-footer {
    border-top: 1px solid #EFE2CF;
    padding: 1.5rem 32px 0;
    margin-top: auto;
}

.typology-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gris-suave);
    margin-bottom: 4px;
    font-weight: 500;
}

.typology-price {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--azul-arrayanes);
    font-family: var(--font-title);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   6. BIENESTAR / ZONAS SOCIALES
   ========================================================================== */
.club-house {
    background-color: var(--azul-arrayanes-oscuro);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.club-house::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at 70% 30%, rgba(190, 140, 60, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.club-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 4rem;
}

.club-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(210, 180, 110, 0.15);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.club-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--dorado-arrayanes);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.club-icon {
    color: var(--dorado-claro);
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.club-card:hover .club-icon {
    transform: scale(1.1);
    color: var(--dorado-arrayanes);
}

.club-icon svg {
    width: 100%;
    height: 100%;
}

.club-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--blanco-calido);
    line-height: 1.4;
}

.club-grid > *:nth-child(6) {
    grid-column: span 2;
}

/* ==========================================================================
   7. SECCIONES VISUALES
   ========================================================================== */
.visual-section {
    padding: var(--section-padding);
}

.wellness-section {
    background-color: var(--azul-arrayanes-oscuro);
}

.rest-section {
    background-color: var(--blanco-calido);
}

.visual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visual-image-wrapper {
    position: relative;
}

.visual-image {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-warm);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.framed {
    padding: 20px;
    border: 1px solid var(--dorado-claro);
    border-radius: calc(var(--border-radius-xl) + 20px);
}

.visual-content {
    max-width: 540px;
}

/* ==========================================================================
   VISTA PANORÁMICA DEL PROYECTO
   ========================================================================== */
.panoramic-section {
    position: relative;
    overflow: hidden;
}

.panoramic-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.panoramic-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
    max-height: 700px;
    display: block;
}

.panoramic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(11, 23, 54, 0.85) 0%,
        rgba(11, 23, 54, 0.55) 45%,
        rgba(11, 23, 54, 0.15) 100%
    );
    pointer-events: none;
}

.panoramic-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 8%;
    max-width: 600px;
    z-index: 2;
}

.panoramic-content .section-title {
    font-size: 2.8rem;
    line-height: 1.15;
}

.panoramic-content .section-text {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* ==========================================================================
   8. GALERÍA
   ========================================================================== */
.gallery-section {
    background-color: var(--beige-calido);
    padding: var(--section-padding);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 4rem 0;
    justify-content: center;
}

.gallery-grid .gallery-item {
    flex: 0 1 calc(33.333% - 22px);
    min-width: 280px;
}


.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    aspect-ratio: 1/1;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover::after {
    border-color: var(--dorado-arrayanes);
}

.legal-note {
    font-size: 0.8rem;
    color: var(--gris-suave);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   9. UBICACIÓN DEL PROYECTO
   ========================================================================== */
.location-section {
    background-color: var(--blanco-calido);
    padding: var(--section-padding);
    border-top: 1px solid rgba(190, 140, 60, 0.15);
}

.location-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.location-content {
    max-width: 560px;
}

.location-coordinates {
    font-size: 0.95rem;
    color: var(--gris-suave);
    margin-bottom: 2rem;
}

.location-map-card {
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-warm);
    border: 1px solid rgba(190, 140, 60, 0.25);
    background-color: #ffffff;
}

.location-map-card iframe {
    display: block;
    width: 100%;
    min-height: 420px;
}

/* ==========================================================================
   10. CIERRE FINAL / CTA
   ========================================================================== */
.final-cta {
    background-color: var(--azul-arrayanes-oscuro);
    padding: 140px 0;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(190, 140, 60, 0.08) 0%, transparent 70%);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
    background-color: #0B1736;
    padding: 80px 0 60px;
    color: var(--blanco-calido);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.footer-legal {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--beige-arena);
    max-width: 700px;
    line-height: 1.7;
    letter-spacing: 0.2px;
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }

    .hero-container {
        gap: 40px;
    }

    .visual-container {
        gap: 50px;
    }

    .typologies-grid {
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }

    .hero-overlay {
        background: rgba(16, 33, 74, 0.85);
    }

    .hero-content {
        padding-right: 0;
        max-width: 700px;
        margin: 0 auto;
    }

    .decorative-line {
        margin: 2rem auto;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .hero-form-wrapper {
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .typologies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .club-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .club-grid > *:nth-child(6) {
        grid-column: span 1;
    }

    .visual-container {
        gap: 40px;
    }

    .location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .location-content {
        text-align: center;
        margin: 0 auto;
    }

    .location-content .decorative-line {
        margin: 2rem auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .form-card {
        padding: 40px 24px;
    }

    .benefits,
    .typologies,
    .club-house,
    .visual-section,
    .gallery-section,
    .location-section {
        padding: var(--section-padding-mobile);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .typologies-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 3rem auto 0;
    }

    .club-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 3rem auto 0;
    }

    .visual-container {
        grid-template-columns: 1fr;
    }

    .visual-container.reverse .visual-content {
        order: 2;
    }

    .visual-container.reverse .visual-image-wrapper {
        order: 1;
    }

    .visual-content {
        max-width: 100%;
        text-align: center;
    }

    .gallery-grid {
        gap: 20px;
    }

    .gallery-grid .gallery-item {
        flex: 0 1 100%;
        min-width: unset;
    }

    .panoramic-image-wrapper {
        min-height: 400px;
    }

    .panoramic-image-wrapper img {
        min-height: 400px;
    }

    .panoramic-overlay {
        background: linear-gradient(
            to top,
            rgba(11, 23, 54, 0.9) 0%,
            rgba(11, 23, 54, 0.6) 50%,
            rgba(11, 23, 54, 0.2) 100%
        );
    }

    .panoramic-content {
        top: auto;
        bottom: 0;
        transform: none;
        padding: 32px 24px;
        max-width: 100%;
        text-align: center;
    }

    .panoramic-content .section-title {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 0;
    }

    .header.scrolled {
        padding: 12px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .logo-img {
        max-height: 65px;
    }

    .header.scrolled .logo-img {
        max-height: 55px;
    }

    .header .btn {
        width: auto;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .typology-card {
        padding: 0 0 24px;
    }

    .typology-body {
        padding: 20px 20px 0;
    }

    .typology-footer {
        padding: 1.25rem 20px 0;
    }

    .club-card {
        padding: 24px 16px;
    }

    .location-map-card iframe {
        min-height: 320px;
    }
}

/* ==========================================================================
   MODAL PARA ZONAS SOCIALES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 23, 54, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--blanco-calido);
    width: 90%;
    max-width: 550px;
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(190, 140, 60, 0.2);
    text-align: center;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: var(--dorado-arrayanes);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--azul-arrayanes);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
    color: var(--dorado-arrayanes);
    transform: rotate(90deg);
}

.modal-icon-wrapper {
    color: var(--dorado-arrayanes);
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrapper svg {
    width: 60px;
    height: 60px;
    stroke-width: 1.25;
}

.modal-title-text {
    font-size: 2.25rem;
    color: var(--azul-arrayanes);
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.modal-description-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--grafito);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.club-card {
    cursor: pointer;
}

@media (max-width: 576px) {
    .modal-card {
        padding: 40px 24px 32px;
        width: 92%;
    }
    .modal-title-text {
        font-size: 1.85rem;
    }
}

/* ==========================================================================
   LIGHTBOX PARA IMÁGENES DE TIPOLOGÍAS
   ========================================================================== */
.typology-image {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 23, 54, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    will-change: transform;
    cursor: zoom-in;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-overlay.active img {
    cursor: grab;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco-calido);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Indicador visual de zoom en la imagen */
.typology-image::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231C3470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.typology-card:hover .typology-image::after {
    opacity: 0.85;
}