/* ============================================
   EXPLORE SAN SEBASTIÁN — Premium Landing Page
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --burgundy: #4A0E2E;
    --burgundy-light: #6B1D45;
    --burgundy-dark: #350A20;
    --gold: #C8A96E;
    --gold-light: #D4BC8E;
    --gold-dark: #B08B4A;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8DFD0;
    --black: #1A1A1A;
    --charcoal: #2D2D2D;
    --gray: #6B6B6B;
    --gray-light: #9A9A9A;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 8px 30px rgba(200, 169, 110, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--cream-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 120px 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    position: relative;
    padding: 0 20px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 1px;
    background: var(--gold);
}

.section-tag::before {
    left: 0;
}

.section-tag::after {
    right: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--black);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    color: var(--burgundy);
}

.section-description {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(74, 14, 46, 0.3);
}

.btn-primary:hover {
    background: var(--burgundy-light);
    box-shadow: 0 6px 30px rgba(74, 14, 46, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    z-index: 100;
}

.logo-img {
    height: 75px;
    width: auto;
    transition: var(--transition);
    display: block;
}

.navbar.scrolled .logo-img {
    height: 75px;
}

.footer-logo {
    height: 55px;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 4px 0;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:not(.nav-cta):hover {
    color: var(--white);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--burgundy);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 100px;
    font-weight: 500 !important;
}

.nav-cta:hover {
    background: var(--burgundy-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(26, 26, 26, 0.4) 0%,
            rgba(74, 14, 46, 0.5) 50%,
            rgba(26, 26, 26, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200, 169, 110, 0.4);
    padding: 8px 24px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    background: rgba(200, 169, 110, 0.08);
    animation: fadeInDown 1s ease 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-title-line {
    display: block;
    font-weight: 400;
}

.hero-title-accent {
    display: block;
    font-style: italic;
    color: var(--gold-light);
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    animation: fadeInUp 1s ease 1.2s both;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(200, 169, 110, 0.8), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        height: 40px;
    }

    50% {
        opacity: 0.3;
        height: 20px;
    }
}

/* ---------- About Section ---------- */
.about {
    background: var(--cream-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 72px;
}

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 110, 0.2);
}

.about-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
    transition: var(--transition);
}

.about-card:hover .about-card-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-gold);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--black);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(7, auto);
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--burgundy);
    border-radius: var(--radius-lg);
    padding: 48px 60px;
    box-shadow: 0 20px 60px rgba(74, 14, 46, 0.3);
}

.stat {
    text-align: center;
    padding: 0 40px;
}

.stat-number,
.stat-number-text,
.stat-suffix {
    font-family: var(--font-heading);
    color: var(--gold) !important;
}

.stat-number,
.stat-number-text {
    display: block;
    line-height: 1.1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
}

.stat-suffix {
    font-size: 1.2rem;
    margin-left: 2px;
}

.stat-number-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- Features Section ---------- */
.features {
    background: var(--white);
}

#features .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: var(--cream-light);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(74, 14, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--burgundy);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--burgundy);
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--black);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ---------- Amenity Photo Gallery ---------- */
.amenity-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .amenity-gallery {
        grid-template-columns: 1fr;
    }
}

.amenity-photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    cursor: default;
}

.amenity-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.amenity-photo-card:hover img {
    transform: scale(1.05);
}

.amenity-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    background: linear-gradient(to top, rgba(20,5,15,0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
}

.amenity-photo-label span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ---------- Professional Management Section ---------- */
.mgmt {
    background: var(--cream-light);
    padding-top: 0;
}

.mgmt-hero {
    position: relative;
    height: 520px;
    overflow: hidden;
}

.mgmt-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 8s ease;
}

.mgmt-hero:hover img {
    transform: scale(1.04);
}

.mgmt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26,26,26,0.80) 0%,
        rgba(74,14,46,0.55) 50%,
        rgba(26,26,26,0.30) 100%
    );
    display: flex;
    align-items: center;
}

.mgmt-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.mgmt-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: var(--white);
    margin: 16px 0 20px;
    line-height: 1.15;
}

.mgmt-hero-title em {
    color: var(--gold-light);
    font-style: italic;
}

.mgmt-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.80);
    line-height: 1.7;
    max-width: 500px;
}

/* Grid de servicios */
.mgmt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.mgmt-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mgmt-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.mgmt-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.mgmt-card:hover::after {
    transform: scaleX(1);
}

.mgmt-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(74,14,46,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--burgundy);
    transition: var(--transition);
}

.mgmt-card:hover .mgmt-card-icon {
    background: var(--burgundy);
    color: var(--white);
    transform: scale(1.05);
}

.mgmt-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--black);
}

.mgmt-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.mgmt-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--burgundy);
    opacity: 0.7;
    text-transform: uppercase;
}

/* CTA card */
.mgmt-card--cta {
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
    border-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-row: span 1;
}

.mgmt-card--cta::after { display: none; }
.mgmt-card--cta:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(74,14,46,0.4); }

.mgmt-cta-inner { padding: 8px; }

.mgmt-cta-star {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
    animation: starPulse 3s ease infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.mgmt-card--cta h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.mgmt-card--cta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
}

/* Stats bar management */
.mgmt-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--burgundy);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow: 0 20px 60px rgba(74,14,46,0.25);
    margin-bottom: 0;
    gap: 0;
}

.mgmt-stat {
    text-align: center;
    padding: 0 36px;
}

.mgmt-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 6px;
}

.mgmt-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mgmt-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
}

.mgmt-stat--wide {
    flex: 1;
    max-width: 480px;
    text-align: left;
    padding: 0 40px;
}

@media (max-width: 1024px) {
    .mgmt-grid { grid-template-columns: repeat(2, 1fr); }
    .mgmt-stats { flex-wrap: wrap; padding: 32px 24px; gap: 0; }
    .mgmt-stat-divider { display: none; }
    .mgmt-stat { padding: 16px; }
}

/* .mgmt-stats-row: inline row holder for the two small stats */
.mgmt-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mgmt-stat-divider--inner {
    display: block;
}

@media (max-width: 640px) {
    .mgmt-hero { height: 380px; }
    .mgmt-grid { grid-template-columns: 1fr; }

    /* Stack: text block full width on top, two stats row below */
    .mgmt-stats {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 20px;
        gap: 24px;
    }

    /* Hide the outer divider between text and stats row on mobile */
    .mgmt-stats > .mgmt-stat-divider {
        display: none;
    }

    /* Wide text block: full width & centred on mobile */
    .mgmt-stat--wide {
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    /* The inner row of two stats keeps them side-by-side */
    .mgmt-stats-row {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding-top: 20px;
    }

    .mgmt-stat-divider--inner {
        display: block;
        width: 1px;
        height: 40px;
        background: rgba(255,255,255,0.15);
    }

    .mgmt-stat { padding: 0 16px; }

    .mgmt-stat-num { font-size: 2rem; }
    .mgmt-stat-label { font-size: 0.72rem; letter-spacing: 1px; }
}


/* ---------- Calculator Section ---------- */

.calculator {
    background: var(--burgundy-dark);
    position: relative;
    overflow: visible; /* allow cream panel to render without clip */
    padding-bottom: 0 !important; /* panel handles its own bottom spacing */
}

.calculator::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.calculator .section-header {
    color: var(--white);
}

.calculator .section-tag {
    color: var(--gold);
}

.calculator .section-title {
    color: var(--white);
}

.calculator .section-title em {
    color: var(--gold-light);
}

.calculator .section-description {
    color: rgba(255, 255, 255, 0.65);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
}

.calc-step {
    margin-bottom: 40px;
}

.calc-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.calc-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--burgundy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.calc-step-title {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 4px;
}

.calc-step-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Slider */
.calc-slider-wrapper {
    padding: 0 52px 0 52px;
}

.calc-slider-value {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1;
}

.calc-slider-value small {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(200, 169, 110, 0.7);
    margin-left: 4px;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 8px rgba(200, 169, 110, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.calc-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Option Buttons */
.calc-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 52px;
}

.calc-option {
    padding: 14px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.calc-option:hover {
    border-color: rgba(200, 169, 110, 0.4);
    color: var(--white);
    background: rgba(200, 169, 110, 0.08);
}

.calc-option.active {
    background: var(--gold);
    color: var(--burgundy-dark);
    border-color: var(--gold);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.3);
}

/* Result Panel */
.calc-result {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    transition: var(--transition);
}

.calc-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gold);
}

.calc-result-header span {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.calc-result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.calc-result-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.calc-result-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.calc-result-total .calc-result-label {
    color: var(--gold);
    font-weight: 600;
    font-size: 1rem;
}

.calc-result-total .calc-result-value {
    font-size: 2rem;
    color: var(--gold);
    transition: var(--transition);
}

.calc-result-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-result-detail span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.calc-result-detail strong {
    color: rgba(255, 255, 255, 0.6);
}

/* Suite Cards */
.calc-suites-title {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
}

.calc-suite-cards {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-top: 15px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255, 255, 255, 0.1);
}

.calc-suite-cards::-webkit-scrollbar {
    height: 8px;
}
.calc-suite-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.calc-suite-cards::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.calc-suite-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

.calc-suite-card.reachable {
    border-color: rgba(200, 169, 110, 0.4);
    background: rgba(200, 169, 110, 0.08);
}

.calc-suite-card.reachable .calc-suite-badge {
    background: var(--gold);
    color: var(--burgundy-dark);
}

.calc-suite-card.unreachable {
    opacity: 0.4;
}

.calc-suite-card.unreachable .calc-suite-status {
    display: none;
}

.calc-suite-card.best-match {
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.15);
    box-shadow: 0 0 30px rgba(200, 169, 110, 0.15);
    transform: scale(1.03);
}

.calc-suite-price-container {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.calc-suite-price-original {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    letter-spacing: 0.5px;
}

.calc-suite-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(200, 169, 110, 0.2);
    color: var(--gold);
    transition: var(--transition);
}

.calc-suite-card h4 {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 4px;
}

.calc-suite-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
}

.calc-suite-apply-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-suite-apply-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 110, 0.3);
}

.calc-suite-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

/* Gold — primary action */
.plan-btn-a {
    background: linear-gradient(135deg, #c8a96e 0%, #e8c97e 100%);
    color: #2a0a14;
    box-shadow: 0 4px 14px rgba(200, 169, 110, 0.35);
}
.plan-btn-a:hover {
    background: linear-gradient(135deg, #e8c97e 0%, #c8a96e 100%);
    box-shadow: 0 6px 20px rgba(200, 169, 110, 0.5);
    transform: translateY(-1px);
}

/* Navy Blue — secondary action */
.plan-btn-b {
    background: linear-gradient(135deg, #1a3a5c 0%, #1e4d78 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 58, 92, 0.35);
}
.plan-btn-b:hover {
    background: linear-gradient(135deg, #1e4d78 0%, #1a3a5c 100%);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.5);
    transform: translateY(-1px);
}

.calc-suite-plan-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    padding: 0 4px;
}

/* Legacy fallback — keep for any old markup still using the original class */
.calc-suite-plan-btn--b {
    background: linear-gradient(135deg, #1a8f8f 0%, #22b5b5 100%);
    color: #fff;
}

.calc-suite-unit-info {
    text-align: center;
    margin-bottom: 14px;
}
.calc-suite-unit-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    color: var(--white);
}
.calc-suite-unit-info p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

.calc-suite-status-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.status-green { background: #16a34a; }
.status-orange { background: #d97706; }
.status-red { background: #dc2626; }

.calc-suite-card.sold-out {
    opacity: 0.5;
    filter: grayscale(0.8);
    pointer-events: none;
}

.calc-suite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.calc-suite-check {
    color: var(--gold);
}

.calc-suite-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calculator Responsive */
@media (max-width: 768px) {
    .calc-options {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .calc-slider-wrapper {
        padding: 0;
    }

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

    .calc-slider-value {
        font-size: 2.2rem;
    }

    .calc-result {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .calc-suite-cards {
        grid-template-columns: 1fr;
    }

    .calc-result-total .calc-result-value {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════════════
   PAYMENT PLANS PANEL
   ══════════════════════════════════════════════ */

/* Wrapper that breaks out of the burgundy background */
.pay-plans-trigger,
.pay-plans-panel {
    /* Negative margin stretches past .calc-container padding */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.pay-plans-trigger {
    background: var(--cream-light);
    text-align: center;
    padding-top: 40px;
    padding-bottom: 48px; /* bottom spacer when panel is closed */
    margin-top: 40px;
}

.pay-plans-panel {
    background: var(--cream-light);
    padding-bottom: 80px; /* replaces section padding-bottom removed above */
}

/* Inner content constrained to 800px like the rest of the calc */
.pay-plans-inner {
    max-width: 800px;
    margin: 0 auto;
}


.btn-pay-plans {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: rgba(74, 14, 46, 0.07);
    border: 1px solid rgba(74, 14, 46, 0.3);
    border-radius: 100px;
    color: var(--burgundy);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-pay-plans:hover {
    background: rgba(74, 14, 46, 0.13);
    border-color: var(--burgundy);
    box-shadow: 0 0 24px rgba(74, 14, 46, 0.12);
}

.btn-pay-plans[aria-expanded="true"] {
    background: rgba(74, 14, 46, 0.13);
    border-color: var(--burgundy);
}

.pay-plans-chevron {
    transition: transform 0.3s ease;
}

.btn-pay-plans[aria-expanded="true"] .pay-plans-chevron {
    transform: rotate(180deg);
}

/* Panel */
.pay-plans-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.pay-plans-panel.open {
    max-height: 1400px;
    overflow: visible; /* allow content to breathe, no clipping */
    opacity: 1;
}

/* Panel Header */
.pay-plans-header {
    padding: 36px 0 20px;
    border-bottom: 1px solid rgba(74, 14, 46, 0.1);
    margin-bottom: 28px;
}

.pay-plans-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 8px;
}

.pay-plans-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--burgundy);
    margin-bottom: 8px;
}

.pay-plans-desc {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Price Row */
.pay-plans-price-row {
    background: #fff;
    border: 1px solid rgba(74, 14, 46, 0.1);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(74, 14, 46, 0.05);
}

.pay-plans-price-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.pay-plans-price-label span:first-child {
    font-size: 0.88rem;
    color: var(--charcoal);
    font-weight: 600;
}

.pay-plans-price-hint {
    font-size: 0.75rem;
    color: var(--gray);
}

.pay-plans-price-display {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1;
}

/* 3 Plan Cards Grid — 2×2 to fit 4 cards */
.pay-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 32px;         /* extra space between rows for row-2 badge */
    margin-bottom: 32px;
    align-items: stretch;
    padding-top: 20px;     /* room for row-1 badges overflowing above */
    overflow: visible;
}

.pay-plan-card {
    background: #fff;
    border: 1px solid rgba(74, 14, 46, 0.1);
    border-radius: 14px;
    padding: 22px 20px 20px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(74, 14, 46, 0.05);
    display: flex;
    flex-direction: column; /* stretch rows content evenly */
}

.ppc-rows {
    border-top: 1px solid rgba(74, 14, 46, 0.08);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto; /* push rows to bottom of card */
}


.pay-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(74, 14, 46, 0.12);
}

/* 50/50 highlight border uses burgundy-light */
.pay-plan-card--highlight {
    border-color: rgba(107, 29, 69, 0.3);
    box-shadow: 0 4px 24px rgba(74, 14, 46, 0.08);
}

/* Top accent bar */
.ppc-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

/* Popular badge */
.ppc-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #6B1D45;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(74,14,46,0.25);
}

.ppc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    margin-top: 8px;
}

.ppc-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--charcoal);
}

.ppc-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid;
}

.ppc-desc {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(74, 14, 46, 0.08);
}

.ppc-total-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    margin-bottom: 4px;
}

.ppc-total {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 14px;
}

.ppc-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.78rem;
}

.ppc-row span:first-child { color: var(--gray); }
.ppc-row span:last-child  { color: var(--charcoal); font-weight: 600; }

/* Accesible badge (Flexible plan) */
.ppc-badge-top--flex {
    background: #C8A96E;
    color: #3d2400;
}

.ppc-row-highlight span:last-child {
    color: #4A0E2E;
    font-weight: 700;
}

.ppc-flex-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(200,169,110,0.3);
    font-size: 0.68rem;
    color: rgba(155,120,48,0.7);
    text-align: center;
    letter-spacing: 0.03em;
}

/* CTA row */
.pay-plans-cta {
    text-align: center;
    padding: 24px 0 12px;
    border-top: 1px solid rgba(74, 14, 46, 0.1);
}

.pay-plans-cta-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .pay-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pay-plans-price-label {
        flex-direction: column;
        gap: 4px;
    }
    .ppc-total { font-size: 1.5rem; }
    .pay-plans-title { font-size: 1.35rem; }

    /* En móvil las 4 tarjetas apiladas necesitan más espacio */
    .pay-plans-panel.open {
        max-height: 4000px;
    }

    /* Asegura que el botón CTA al final sea visible */
    .pay-plans-cta {
        padding-bottom: 32px;
    }
}


.gallery {
    background: var(--cream-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-large {
    grid-row: span 2;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 24px 24px;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

/* ---------- Location Section ---------- */
.location {
    background: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-info .section-title {
    text-align: left;
}

.location-description {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin: 24px 0 32px;
}

.location-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-highlights li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.location-highlights li svg {
    color: var(--gold);
    flex-shrink: 0;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.location-map iframe {
    display: block;
}

/* ---------- Promoters Section ---------- */
.promoters {
    background: var(--cream-light);
}

.promoters-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.promoter-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
    letter-spacing: 1px;
}

.promoter-brand-divider {
    width: 2px;
    height: 40px;
    background: var(--gold);
    opacity: 0.5;
}

.promoters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.promoter-card {
    display: flex;
    gap: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.promoter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 169, 110, 0.2);
}

.promoter-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 16px rgba(200, 169, 110, 0.2);
}

.promoter-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promoter-info h3 {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 4px;
}

.promoter-role {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 14px;
}

.promoter-info p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .promoters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .promoter-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 24px;
    }

    .promoters-brands {
        gap: 24px;
    }

    .promoter-brand h3 {
        font-size: 1.3rem;
    }
}

/* ---------- Contact Section ---------- */
.contact {
    background: var(--cream-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-tag {
    padding-left: 0;
}

.contact-info .section-tag::before {
    display: none;
}

.contact-info .section-title {
    text-align: left;
}

.contact-description {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin: 16px 0 36px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateX(4px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-method div strong {
    display: block;
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: 2px;
}

.contact-method div span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--black);
    background: var(--cream-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(74, 14, 46, 0.08);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.footer-links h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 40px;
    }

    .stat-divider {
        display: none;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    .gallery-item {
        height: 300px;
    }

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

    .location-map {
        height: 400px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transform: translateX(100%);
        transition: var(--transition-slow);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

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

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 32px 24px;
    }

    #features .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
    }

    .about-card {
        padding: 28px 24px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .gallery-item {
        height: 240px;
    }

    .location-map {
        height: 300px;
    }
}

/* ---------- Plan Modal ---------- */
.plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.plan-modal.active {
    display: flex;
    opacity: 1;
}

.plan-modal-title {
    width: 100%;
    text-align: center;
    color: var(--gold);
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    padding: 25px 20px 10px;
    margin: 0;
    z-index: 10001;
    background: linear-gradient(to bottom, rgba(10,15,25,1), rgba(10,15,25,0));
}

.plan-modal-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita scroll bars en ambos sentidos */
    padding: 20px;
    gap: 30px;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbars for Modal */
.plan-modal-gallery::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.plan-modal-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.plan-modal-gallery::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}


.plan-modal img {
    max-width: 95%;
    height: auto;
    max-height: none; /* Permitir que la imagen tome su altura natural para scroll */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.plan-modal.active img {
    transform: scale(1);
}

.plan-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10000;
}

.plan-modal-close:hover {
    background: var(--gold);
    color: var(--black);
    transform: rotate(90deg);
}

/* =========================================
   INVESTMENT CALCULATOR SECTION
========================================= */
.investment-calculator {
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--burgundy-dark);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--white);
}

.investment-calculator .section-title,
.investment-calculator .section-description,
.investment-calculator .calc-slider-group label {
    color: var(--white);
}

.investment-calculator .section-description {
    opacity: 0.8;
}

.inv-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-top: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .inv-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.inv-controls {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
}

.inv-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inv-param label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.inv-param-box {
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.inv-param-bank {
    background: rgba(255, 255, 255, 0.05);
}

.inv-param-bank select {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    outline: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.inv-param-bank select option {
    color: #000;
}

.inv-param-re {
    background: linear-gradient(135deg, rgba(200,169,110,0.15), rgba(200,169,110,0.25));
    border: 1px solid rgba(200,169,110,0.4);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-param-re small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    margin-left: 2px;
}

.inv-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Results Panel */
.inv-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.inv-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.inv-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.inv-card-body {
    padding: 24px;
}

.inv-res-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.inv-res-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-top: 12px;
    color: rgba(255,255,255,0.7);
}

.inv-border-bottom {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
}

.inv-val-highlight {
    color: #fff;
    font-weight: 600;
}

/* Bank Card Specifics */
.bank-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

.bank-card .inv-card-header {
    background: rgba(255,255,255,0.02);
}

.bank-card .inv-card-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.bank-card .inv-card-header span {
    font-size: 0.9rem;
    opacity: 0.6;
    font-weight: 400;
}

.bank-card h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.9);
}

.bank-card .inv-res-row {
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Real Estate Card Specifics */
.re-card {
    background: linear-gradient(145deg, rgba(200,169,110,0.1), rgba(0,0,0,0.8));
    border: 1px solid rgba(200,169,110,0.3);
}

.re-card .inv-card-header {
    background: rgba(200,169,110,0.05);
    border-bottom: 1px solid rgba(200,169,110,0.15);
}

.re-card .inv-card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}

.re-card h4 {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(200,169,110,0.2);
}

.re-card .inv-border-bottom {
    border-bottom: 1px solid rgba(200,169,110,0.15);
}

.inv-card-badge {
    position: absolute;
    top: 16px;
    right: 24px;
    background: var(--gold);
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(200,169,110,0.3);
}

/* ---------- Quick Apply Modal ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: modalFadeIn 0.3s forwards;
}

.modal-content.contact-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    animation: modalSlideUp 0.3s forwards;
}

@keyframes modalFadeIn {
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    to { transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--burgundy);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.gold-form .block-btn {
    width: 100%;
    margin-top: 10px;
}

.btn-apply-unit {
    width: auto;
    align-self: center;
    padding: 8px 20px;
    background: #22c55e;
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-apply-unit:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.3);
}

.btn-apply-unit svg {
    width: 14px;
    height: 14px;
}

/* Forma de pago button on unit cards */
.btn-pay-unit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #C8A96E 0%, #9B7830 100%);
    color: #1a0a0a;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(200, 169, 110, 0.40);
    animation: payPulse 2.8s ease-in-out infinite;
}

@keyframes payPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(200,169,110,0.40); }
    50%       { box-shadow: 0 6px 28px rgba(200,169,110,0.70); }
}

.btn-pay-unit:hover {
    background: linear-gradient(135deg, #d9bc82 0%, #b08c3a 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(200, 169, 110, 0.55);
    animation: none;
}

.btn-pay-unit svg {
    width: 17px;
    height: 17px;
}


@media (max-width: 600px) {
    .modal-content.contact-modal {
        padding: 30px 20px;
    }
}
/* ---------- Summary Modal & PDF Document ---------- */
.summary-modal-content {
    background: #f8f9fa !important;
    max-width: 650px !important;
    padding: 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    color: #1a1a1a !important;
}

.pdf-document {
    background: #fff;
    padding: 50px 60px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 2px solid #c8a96e;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.pdf-logo {
    height: 70px;
    width: auto;
}

.pdf-header-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2a0a14;
    margin: 0;
}

.pdf-header-text p {
    font-size: 0.95rem;
    color: #c8a96e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 5px 0 0;
    font-weight: 600;
}

.pdf-body {
    padding: 10px 0;
}

.pdf-section {
    margin-bottom: 20px;
}

.pdf-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.pdf-row span {
    color: #666;
}

.pdf-row strong {
    color: #111;
    font-weight: 700;
}

.pdf-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.pdf-result-box {
    background: #fdfaf3;
    border-left: 5px solid #c8a96e;
    padding: 24px 30px;
    margin: 35px 0;
    border-radius: 4px;
}

.pdf-row.total {
    font-size: 1.4rem;
    border-bottom: none;
    padding: 0;
    align-items: center;
}

.pdf-row.total span {
    color: #2a0a14;
    font-weight: 700;
}

.pdf-row.total strong {
    color: #c8a96e;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

.pdf-footer {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 650px) {
    .pdf-document {
        padding: 30px 20px;
    }
    .pdf-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .pdf-row.total strong {
        font-size: 1.6rem;
    }
}

/* =====================================================
   AIRBNB INCOME PROJECTION CARDS (inside summary modal)
   ===================================================== */

.airbnb-income-section {
    background: #0f1117;
    padding: 36px 40px 28px;
    color: #f0f0f0;
}

.airbnb-income-header {
    text-align: center;
    margin-bottom: 28px;
}

.airbnb-income-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 90, 95, 0.12);
    color: #ff5a5f;
    border: 1px solid rgba(255, 90, 95, 0.3);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.airbnb-income-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
}

.airbnb-income-subtitle {
    font-size: 0.82rem;
    color: #8a8f9e;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Cards Grid */
.airbnb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Base card */
.airbnb-card {
    position: relative;
    border-radius: 14px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.airbnb-card:hover {
    transform: translateY(-4px);
}

/* Card variants */
.airbnb-card--basic {
    background: linear-gradient(145deg, #1a1f2e 0%, #222840 100%);
    border: 1px solid rgba(130, 150, 220, 0.2);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.airbnb-card--basic:hover {
    box-shadow: 0 12px 36px rgba(100, 130, 255, 0.15);
}

.airbnb-card--mid {
    background: linear-gradient(145deg, #1c2030 0%, #252a45 100%);
    border: 1px solid rgba(200, 169, 110, 0.3);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.airbnb-card--mid:hover {
    box-shadow: 0 12px 36px rgba(200, 169, 110, 0.2);
}

.airbnb-card--premium {
    background: linear-gradient(145deg, #1e1820 0%, #2b1f2c 100%);
    border: 1px solid rgba(255, 90, 95, 0.25);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.airbnb-card--premium:hover {
    box-shadow: 0 12px 36px rgba(255, 90, 95, 0.2);
}

/* Ribbon badge */
.airbnb-card-ribbon {
    position: absolute;
    top: 12px;
    right: -1px;
    background: #c8a96e;
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px 0 0 4px;
}
.airbnb-card-ribbon--gold {
    background: linear-gradient(90deg, #c8a96e, #e8c97e);
    color: #1a1a1a;
}

/* Card top */
.airbnb-card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.airbnb-card-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 4px;
}

.airbnb-card-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e8ecf5;
    letter-spacing: 0.2px;
}

.airbnb-card-capacity {
    font-size: 0.74rem;
    color: #6b7599;
    font-weight: 500;
}

/* Nightly rate */
.airbnb-card-rate {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rate-range {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.airbnb-card--basic   .rate-range { color: #8ea8f0; }
.airbnb-card--mid     .rate-range { color: #c8a96e; }
.airbnb-card--premium .rate-range { color: #ff8e8e; }

.rate-unit {
    font-size: 0.78rem;
    color: #6b7599;
    font-weight: 500;
}

/* Metric rows */
.airbnb-card-metrics {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 12px 14px;
}

.airbnb-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.airbnb-metric-label {
    font-size: 0.68rem;
    color: #6b7599;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.airbnb-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #d6ddf8;
}

.airbnb-metric-value.highlight {
    font-size: 1.15rem;
    color: #ffffff;
}

.airbnb-card--mid     .airbnb-metric-value.highlight { color: #e8c97e; }
.airbnb-card--premium .airbnb-metric-value.highlight { color: #ff9e9e; }

.airbnb-metric-sub {
    font-size: 0.64rem;
    color: #4d5470;
    font-style: italic;
}

.airbnb-metric-divider {
    width: 1px;
    background: rgba(255,255,255,0.08);
    margin: 2px 0;
}

/* Projection bar */
.airbnb-projection {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.projection-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #6b7599;
}

.projection-bar-label span  { font-weight: 500; }
.projection-bar-label em    { color: #4d5470; font-style: normal; }

.projection-bar-label strong {
    font-size: 0.9rem;
    color: #c8c8d8;
    font-weight: 700;
}

.projection-bar {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.projection-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #4a6cf7, #8ea8f0);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.airbnb-card--mid     .projection-bar-fill { background: linear-gradient(90deg, #a07840, #e8c97e); }
.airbnb-card--premium .projection-bar-fill { background: linear-gradient(90deg, #c0302e, #ff9e9e); }

/* Disclaimer */
.airbnb-disclaimer {
    font-size: 0.72rem;
    color: #4d5470;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.airbnb-disclaimer strong {
    color: #7a85a8;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .airbnb-cards-grid {
        grid-template-columns: 1fr;
    }
    .airbnb-income-section {
        padding: 28px 24px 20px;
    }
}


/* ══════════════════════════════════════════════
   FLEX PLAN DETAIL MODAL
   ══════════════════════════════════════════════ */

/* "Ver detalles del pago" button inside the card */
.ppc-flex-detail-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9B7830;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    padding: 0;
}
.ppc-flex-detail-btn:hover { color: #4A0E2E; }

/* Overlay */
.flex-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(53, 10, 32, 0.70);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.flex-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* Modal box */
.flex-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 40px 40px;
    position: relative;
    box-shadow: 0 24px 80px rgba(53,10,32,0.30);
    transform: translateY(24px);
    transition: transform 0.3s ease;
}
.flex-modal-overlay.open .flex-modal { transform: translateY(0); }

/* Close button */
.flex-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(74,14,46,0.06);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4A0E2E;
    transition: background 0.2s;
}
.flex-modal-close:hover { background: rgba(74,14,46,0.14); }

/* Header */
.flex-modal-header { margin-bottom: 28px; }
.flex-modal-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9B7830;
    background: rgba(200,169,110,0.12);
    border: 1px solid rgba(200,169,110,0.35);
    border-radius: 100px;
    padding: 3px 12px;
    margin-bottom: 10px;
}
.flex-modal-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: #4A0E2E;
    margin-bottom: 4px;
}
.flex-modal-subtitle {
    font-size: 0.88rem;
    color: var(--gray);
}

/* Summary cards 2×2 */
.flex-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.fms-card {
    background: var(--cream-light, #faf7f2);
    border: 1px solid rgba(74,14,46,0.08);
    border-radius: 12px;
    padding: 16px 18px;
}
.fms-card--total {
    border-color: rgba(74,14,46,0.18);
    background: rgba(74,14,46,0.04);
}
.fms-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray);
    margin-bottom: 6px;
}
.fms-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D2D2D;
}
.fms-value small { font-size: 0.8rem; font-weight: 400; opacity: 0.6; }
.fms-value--gold { color: #9B7830; }
.fms-value--wine  { color: #4A0E2E; }

/* Table */
.flex-modal-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(74,14,46,0.10);
    margin-bottom: 20px;
}
.flex-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.flex-modal-table thead th {
    background: #4A0E2E;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
    padding: 10px 14px;
    text-align: right;
}
.flex-modal-table thead th:first-child { text-align: center; }
.flex-modal-table tbody tr:nth-child(even) { background: rgba(74,14,46,0.03); }
.flex-modal-table tbody td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(74,14,46,0.06);
    text-align: right;
    color: #2D2D2D;
}
.flex-modal-table tbody td:first-child {
    text-align: center;
    font-weight: 700;
    color: #4A0E2E;
}
.flex-modal-table tfoot td {
    padding: 10px 14px;
    background: rgba(200,169,110,0.10);
    font-weight: 700;
    text-align: right;
    color: #4A0E2E;
    border-top: 2px solid rgba(74,14,46,0.15);
}
.flex-modal-table tfoot td:first-child { text-align: center; }

/* Footer note */
.flex-modal-note {
    font-size: 0.73rem;
    color: var(--gray);
    text-align: center;
    line-height: 1.6;
    border-top: 1px dashed rgba(74,14,46,0.15);
    padding-top: 16px;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 600px) {
    .flex-modal { padding: 28px 20px 32px; }
    .flex-modal-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
    .fms-value { font-size: 1.15rem; }
}

/* ── Flex Modal: info cards row ─────────────────────── */
.flex-modal-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.flex-info-card {
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid transparent;
}

.flex-info-card--gold {
    background: rgba(200,169,110,0.08);
    border-color: rgba(200,169,110,0.30);
}

.flex-info-card--wine {
    background: rgba(74,14,46,0.05);
    border-color: rgba(74,14,46,0.14);
}

.flex-info-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4A0E2E;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74,14,46,0.10);
}

.flex-info-card--gold .flex-info-card-title { color: #9B7830; border-bottom-color: rgba(200,169,110,0.25); }

.flex-info-rate-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(74,14,46,0.10);
    color: #4A0E2E;
    border-radius: 100px;
    padding: 2px 10px;
    margin-bottom: 12px;
}

.flex-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(74,14,46,0.06);
    font-size: 0.80rem;
}
.flex-info-item:last-child { border-bottom: none; }

.flex-info-label { color: var(--gray); flex-shrink: 0; }

.flex-info-val {
    font-weight: 600;
    color: #2D2D2D;
    text-align: right;
    font-size: 0.82rem;
}
.flex-info-val--bold {
    font-weight: 700;
    color: #4A0E2E;
    font-size: 0.88rem;
}

@media (max-width: 580px) {
    .flex-modal-info-row { grid-template-columns: 1fr; }
}



/* ── Flex Modal: Stacked Bar Chart ──────────────────── */
.flex-modal-chart-wrap {
    margin-bottom: 24px;
    background: var(--cream-light, #faf7f2);
    border: 1px solid rgba(74,14,46,0.08);
    border-radius: 16px;
    padding: 22px 24px 20px;
}

.flex-chart-title {
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #4A0E2E;
    margin-bottom: 16px;
}

.flex-chart-area { width: 100%; }

/* Single stacked horizontal bar */
.flex-stacked-bar {
    display: flex;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(74,14,46,0.14);
}

.flex-stack-seg {
    height: 100%;
    min-width: 4px;
    /* width animated by JS */
}

/* Labels row below the bar */
.flex-stack-labels {
    display: flex;
    width: 100%;
    margin-top: 12px;
    gap: 0;
}

.flex-stack-lbl {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
    min-width: 0;
    overflow: hidden;
}

.flex-stack-pct {
    font-size: 0.80rem;
    font-weight: 800;
    color: #2D2D2D;
    line-height: 1;
}

.flex-stack-amt {
    font-size: 0.72rem;
    font-weight: 600;
    color: #555;
    margin-top: 2px;
    white-space: nowrap;
}

.flex-stack-name {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
    text-align: center;
    line-height: 1.2;
}

/* Legend row */
.flex-chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(74,14,46,0.08);
}

.flex-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #555;
}

.flex-leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .flex-stacked-bar   { height: 36px; }
    .flex-stack-pct     { font-size: 0.70rem; }
    .flex-stack-amt     { font-size: 0.62rem; }
    .flex-stack-name    { font-size: 0.55rem; }
    .flex-chart-legend  { gap: 10px; }
}

/* Summary 3-col variant */
.flex-modal-summary--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cuota hero en Card A */
.flex-info-cuota-hero {
    text-align: center;
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(200,169,110,0.25);
    margin-bottom: 12px;
}

.flex-info-cuota-val {
    font-family: var(--font-heading, serif);
    font-size: 2rem;
    font-weight: 800;
    color: #9B7830;
    line-height: 1;
}

.flex-info-cuota-sub {
    font-size: 0.72rem;
    color: var(--gray, #888);
    margin-top: 5px;
    letter-spacing: 0.02em;
}

.flex-info-cuota-sub strong {
    color: #9B7830;
    font-weight: 800;
}

/* ── Card A: wide (full-width) ──────────────────────── */
.flex-info-card--wide {
    width: 100%;
    margin-bottom: 14px;
}

.flex-info-card-wide-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.flex-info-cuota-hero { flex-shrink: 0; border-bottom: none; padding-bottom: 0; }

.flex-info-card-wide-dates {
    flex: 1;
    border-left: 1px solid rgba(200,169,110,0.25);
    padding-left: 20px;
}

/* ── Bank grid: horizontal rows ─────────────────────── */
.flex-bank-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.flex-bank-card {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

/* Left accent strip = bank header */
.flex-bank-card-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 14px 18px;
    min-width: 140px;
    flex-shrink: 0;
    border-radius: 10px 0 0 10px;
    gap: 5px;
}

.flex-bank-card-header--biess {
    background: linear-gradient(160deg, #1a3a6b 0%, #2455a0 100%);
    color: #fff;
}

.flex-bank-card-header--pichincha {
    background: linear-gradient(160deg, #006633 0%, #009944 100%);
    color: #fff;
}

.flex-bank-card-header--jep {
    background: linear-gradient(160deg, #8B2500 0%, #BF3B00 100%);
    color: #fff;
}

.flex-bank-logo {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.flex-bank-rate {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.88;
    background: rgba(255,255,255,0.18);
    border-radius: 100px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Right: installment items in a row */
.flex-bank-card .flex-info-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    border-bottom: none;
    border-right: 1px solid rgba(74,14,46,0.07);
    gap: 4px;
    text-align: center;
}

.flex-bank-card .flex-info-item:last-child { border-right: none; }

.flex-bank-card .flex-info-label {
    font-size: 0.65rem;
    text-align: center;
}

.flex-bank-card .flex-info-val--bold {
    font-size: 0.92rem;
}

/* Wrapper for the items side */
.flex-bank-card > .flex-info-item { display: flex; }

@media (max-width: 600px) {
    .flex-bank-card { flex-direction: column; }
    .flex-bank-card-header { border-radius: 10px 10px 0 0; min-width: unset; flex-direction: row; justify-content: space-between; align-items: center; }
    .flex-info-card-wide-body { flex-direction: column; gap: 12px; }
    .flex-info-card-wide-dates { border-left: none; padding-left: 0; border-top: 1px solid rgba(200,169,110,0.25); padding-top: 12px; width: 100%; }
}

/* flex-bank-items: cuotas en fila horizontal */
.flex-bank-items {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.flex-bank-items .flex-info-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    border-bottom: none;
    border-right: 1px solid rgba(74,14,46,0.07);
    gap: 4px;
}

.flex-bank-items .flex-info-item:last-child { border-right: none; }

.flex-bank-items .flex-info-label {
    font-size: 0.64rem;
    text-align: center;
    display: block;
}

.flex-bank-items .flex-info-val--bold {
    font-size: 0.90rem;
    display: block;
}

/* ── Updated bank header colors ────────────────────── */
.flex-bank-card-header--biess {
    background: linear-gradient(160deg, #1B3A72 0%, #1F4E9E 100%) !important;
}

.flex-bank-card-header--pichincha {
    background: linear-gradient(160deg, #004D27 0%, #007A3D 100%) !important;
}

.flex-bank-card-header--jep {
    background: linear-gradient(160deg, #7A3000 0%, #B84800 100%) !important;
}

/* N/A cell */
.flex-bank-na { background: rgba(74,14,46,0.03); }

.flex-bank-na-val {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #bbb !important;
    letter-spacing: 0.05em;
}

/* Bank wrapper card: title + inner grid */
.flex-bank-wrapper { margin-bottom: 20px; }
.flex-bank-wrapper .flex-bank-grid { margin-bottom: 0; gap: 8px; }
.flex-bank-wrapper .flex-bank-card {
    border: 1px solid rgba(200,169,110,0.18);
}

/* BIESS no disponible (precio > $60,000) */
.flex-bank-card--unavailable {
    opacity: 0.42;
    pointer-events: none;
    position: relative;
}

.flex-bank-card--unavailable .flex-bank-card-header--biess {
    background: linear-gradient(160deg, #555 0%, #777 100%) !important;
}

.flex-bank-card--unavailable::after {
    content: 'UNIDAD SUPERA EL PRECIO DE CRÉDITO PREMIER BIESS';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4A0E2E;
    background: rgba(250,247,242,0.80);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: inherit;
    pointer-events: none;
}

/* ── Discount green styles on plan cards ─────────── */
.ppc-badge--green {
    background: rgba(22,163,74,0.10) !important;
    color: #15803d !important;
    border: 1px solid rgba(22,163,74,0.35) !important;
    font-size: 0.78rem !important;
    padding: 3px 10px !important;
    font-weight: 800 !important;
}

.ppc-discount-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

.ppc-discount-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #15803d;
    font-weight: 600;
}

.ppc-discount-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
}

.ppc-total--green {
    color: #15803d !important;
    font-weight: 900 !important;
}

/* ══ Quote Request Modal ══════════════════════════════ */
.qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,4,14,0.72);
    backdrop-filter: blur(6px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.qr-overlay.open { display: flex; }

.qr-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 30px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 24px 64px rgba(74,14,46,0.22);
    animation: qrSlideIn 0.28s cubic-bezier(.22,1,.36,1);
}
@keyframes qrSlideIn {
    from { opacity:0; transform:translateY(24px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.qr-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 1.5rem; color: #888;
    cursor: pointer; line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.qr-close:hover { background: #f3eee8; color: #4A0E2E; }

.qr-header {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 24px;
    color: #4A0E2E;
}
.qr-title {
    font-size: 1.18rem; font-weight: 800;
    color: #4A0E2E; margin: 0 0 2px;
}
.qr-subtitle {
    font-size: 0.8rem; color: #888; margin: 0;
}

.qr-field { margin-bottom: 16px; }
.qr-field label {
    display: block; font-size: 0.78rem;
    font-weight: 600; color: #4A0E2E;
    margin-bottom: 5px; letter-spacing: 0.02em;
}
.qr-field input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e5ddd5;
    border-radius: 10px; font-size: 0.92rem;
    color: #1a1a1a; outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #faf8f5;
}
.qr-field input:focus {
    border-color: #C8A96E;
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}

.qr-error {
    background: #fee2e2; color: #991b1b;
    border-radius: 8px; padding: 10px 14px;
    font-size: 0.82rem; margin-bottom: 14px;
}

.qr-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #4A0E2E 0%, #6B1D45 100%);
    color: #fff; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 8px;
}
.qr-submit:hover  { opacity: 0.9; transform: translateY(-1px); }
.qr-submit:active { transform: translateY(0); }
.qr-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.qr-success {
    text-align: center; padding: 10px 0;
}
.qr-success h3 { font-size: 1.2rem; color: #15803d; margin: 14px 0 6px; }
.qr-success p  { color: #666; font-size: 0.9rem; }

@media (max-width: 520px) {
    .qr-modal { padding: 28px 20px 24px; }
}
