/* ====== RESET & VARIABLES ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Fondos */
    --primary: #F4F1EA;
    --secondary: #EAE7E0;

    /* Acento oro */
    --accent: #C2A46D;
    --accent-light: #DBBD86;
    --accent-dark: #A98B54;

    /* Texto */
    --text: #3F4A3C;
    --text-muted: #717C6E;
    --text-light: #A3AEA0;

    /* Semanticos */
    --success: #3F4A3C;
    --success-dark: #2B3628;
    --success-light: #5D685A;
    --warning: #B8860B;
    --blue: #2563EB;

    /* Cards y superficies */
    --card-bg: #FFFFFF;
    --card-bg-hover: #FDFCF9;
    --border: #E0DDD6;
    --border-light: #D1CEC7;

    /* Sidebar */
    --sidebar-bg: #3F4A3C;
    --sidebar-text: #F9F6EF;
    --sidebar-muted: #8F9A8C;
    --sidebar-border: rgba(255,255,255,0.08);
    --sidebar-active-bg: rgba(194, 164, 109, 0.15);

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(63, 74, 60, 0.08);
    --shadow-md: 0 4px 16px rgba(63, 74, 60, 0.10);
    --shadow-lg: 0 12px 40px rgba(63, 74, 60, 0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

/* Tipografia serif para titulos */
h1, h2, h3, .section-title, .stat-value, .inv-price, .comp-price, .fidei-number {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ====== BUTTONS ====== */
.btn {
    display: inline-block; padding: 0.85rem 1.75rem; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
    cursor: pointer; border: none;
    font-family: 'Inter', -apple-system, sans-serif;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--accent); background: rgba(194, 164, 109, 0.04); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-dark); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ====== SECTIONS ====== */
section { padding: 5rem 0; }
.section-dark { background: var(--secondary); }
.section-label {
    color: var(--accent); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    margin-bottom: 1rem; line-height: 1.2; font-weight: 700;
    color: var(--text);
}
.section-intro {
    color: var(--text-muted); font-size: 1.05rem;
    max-width: 700px; margin-bottom: 3rem; line-height: 1.75;
}

/* ====== VIDEO ====== */
.video-wrapper {
    max-width: 900px; margin: 0 auto;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.video-wrapper video { width: 100%; display: block; }
.video-caption {
    text-align: center; color: var(--text-muted);
    font-size: 0.9rem; margin-top: 1.25rem;
}

/* ====== WHY CARDS ====== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.why-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.why-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.why-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ====== TRIANGLE ====== */
.triangle-map {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.triangle-map img { width: 100%; display: block; }
.tri-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-bottom: 2rem;
}
.tri-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.tri-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.tri-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.tri-stat {
    display: inline-block; background: rgba(194, 164, 109, 0.08);
    padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.78rem;
    font-weight: 600; margin-top: 0.5rem; color: var(--accent-dark);
}

/* ====== QUOTE ====== */
.quote-block {
    background: linear-gradient(135deg, rgba(194, 164, 109, 0.06) 0%, rgba(63, 74, 60, 0.04) 100%);
    border-left: 3px solid var(--accent);
    padding: 1.5rem 2rem; margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}
.quote-block p {
    font-size: 1.05rem; font-weight: 500;
    color: var(--text); line-height: 1.6; font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ====== TWO COLUMNS ====== */
.two-col {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
.img-rounded {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.img-rounded img { width: 100%; display: block; }

/* ====== SIMULATOR ====== */
.sim-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.sim-toggle {
    display: flex;
    background: var(--secondary);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 2rem;
}
.sim-toggle-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.sim-toggle-btn.active {
    background: var(--accent);
    color: white;
}
.sim-group { margin-bottom: 1.5rem; }
.sim-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.sim-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}
.sim-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(194, 164, 109, 0.3);
}
.sim-group input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.sim-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.sim-range-value {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.5rem;
}
.sim-cuotas-grid { display: flex; gap: 0.5rem; }
.sim-cuota-btn {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.sim-cuota-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(194, 164, 109, 0.08);
}
.sim-results {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.sim-result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.sim-result-row:last-child { border-bottom: none; }
.sim-result-row .label { color: var(--text-muted); }
.sim-result-row .value { font-weight: 600; color: var(--text); }
.sim-result-row.highlight .value { color: var(--success); font-size: 1.1rem; }
.sim-result-row.highlight .label { color: var(--success); font-weight: 600; }
.sim-cta { text-align: center; margin-top: 1.5rem; }

/* ====== ACCORDION ====== */
.accordion-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--card-bg);
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.accordion-header:hover { background: var(--secondary); }
.accordion-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.accordion-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-body-inner { padding: 0 1.5rem 1.5rem; }

/* ====== STATS GRID ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.stat-box {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem; text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
.stat-label { color: var(--text-muted); font-size: 0.8rem; }

/* ====== FEATURE LIST ====== */
.feature-list { list-style: none; }
.feature-list li {
    padding: 0.6rem 0; border-bottom: 1px solid var(--border);
    color: var(--text-muted); display: flex; gap: 0.75rem; align-items: flex-start;
    font-size: 0.92rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--success); font-weight: bold; flex-shrink: 0; }

/* ====== BAR CHARTS ====== */
.chart-section { margin-bottom: 2.5rem; }
.chart-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.chart-bar-row {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 0.6rem;
}
.chart-label {
    width: 150px; flex-shrink: 0;
    font-size: 0.82rem; color: var(--text-muted);
    text-align: right;
}
@media (max-width: 600px) { .chart-label { width: 90px; font-size: 0.72rem; } }
.chart-bar-track {
    flex: 1; height: 30px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px; overflow: hidden;
}
.chart-bar {
    height: 100%; border-radius: 6px;
    display: flex; align-items: center;
    padding: 0 0.75rem;
    font-size: 0.78rem; font-weight: 700;
    color: white;
    min-width: fit-content;
}
.chart-bar.red { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.chart-bar.green { background: linear-gradient(90deg, var(--success-dark), var(--success)); }
.chart-bar.blue { background: linear-gradient(90deg, #2563eb, var(--blue)); }
.chart-bar.yellow { background: linear-gradient(90deg, #996515, var(--warning)); }
.chart-bar.gray { background: rgba(0, 0, 0, 0.08); color: var(--text-muted); }
.chart-bar.highlight {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    box-shadow: 0 0 20px rgba(194, 164, 109, 0.2);
}

/* ====== TABLES ====== */
.table-container { overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--secondary); font-weight: 600; font-size: 0.78rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
td { color: var(--text-muted); font-size: 0.88rem; }
tr:last-child td { border-bottom: none; }
tr.row-highlight { background: rgba(63, 74, 60, 0.06); }
tr.row-highlight td { color: var(--success); font-weight: 600; }

/* ====== COMPARISON CARDS ====== */
.comp-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem; margin-bottom: 2rem;
}
@media (max-width: 768px) { .comp-cards { grid-template-columns: 1fr; } }
.comp-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.comp-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.comp-card .comp-sub { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1rem; }
.comp-card .comp-price { font-size: 1.4rem; font-weight: 700; color: var(--warning); margin-bottom: 0.25rem; }
.comp-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ====== INVESTMENT CARDS ====== */
.inv-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.inv-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.75rem; transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.inv-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.inv-card.featured {
    border-color: var(--accent); position: relative;
    background: linear-gradient(180deg, rgba(194, 164, 109, 0.06) 0%, var(--card-bg) 100%);
}
.inv-badge {
    position: absolute; top: -10px; right: 20px;
    background: var(--accent); color: white;
    padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.inv-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.inv-card .subtitle { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 1rem; }
.inv-price { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.inv-detail {
    color: var(--text-muted); font-size: 0.82rem;
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.inv-features { list-style: none; }
.inv-features li {
    padding: 0.3rem 0; color: var(--text-muted); font-size: 0.82rem;
    display: flex; gap: 0.5rem; align-items: flex-start;
}
.inv-features li::before { content: ">"; color: var(--success); font-weight: bold; }

/* ====== MAP ====== */
.map-container {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.map-container iframe { width: 100%; height: 400px; border: none; }
.map-link {
    display: block; padding: 0.75rem; text-align: center;
    background: var(--card-bg); color: var(--accent);
    text-decoration: none; font-size: 0.85rem; transition: background 0.2s;
}
.map-link:hover { background: rgba(194, 164, 109, 0.06); }

.ubi-list { list-style: none; }
.ubi-list li {
    padding: 0.5rem 0; color: var(--text-muted);
    border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.ubi-list li:last-child { border-bottom: none; }

/* ====== ESTADO CARDS ====== */
.estado-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin-bottom: 2rem;
}
@media (max-width: 768px) { .estado-grid { grid-template-columns: 1fr; } }
.estado-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem; text-align: center;
    box-shadow: var(--shadow-sm);
}
.estado-card.done { border-color: var(--success); }
.estado-card.progress { border-color: var(--warning); }
.estado-status {
    display: inline-block; padding: 0.15rem 0.6rem;
    border-radius: 20px; font-size: 0.68rem; font-weight: 700;
    margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.estado-card.done .estado-status { background: rgba(63, 74, 60, 0.10); color: var(--success); }
.estado-card.progress .estado-status { background: rgba(184, 134, 11, 0.10); color: var(--warning); }
.estado-card.pending .estado-status { background: var(--secondary); color: var(--text-muted); }
.estado-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.estado-card p { color: var(--text-muted); font-size: 0.78rem; }

/* ====== FIDEICOMISO CARDS ====== */
.fidei-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.fidei-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.fidei-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.fidei-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.fidei-number {
    font-size: 1.75rem; font-weight: 800; color: var(--accent);
    margin-bottom: 0.5rem; opacity: 0.3;
}

/* ====== PERFIL CARDS ====== */
.perfil-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-bottom: 3rem;
}
.perfil-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.75rem; text-align: center;
    box-shadow: var(--shadow-sm);
}
.perfil-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.perfil-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.perfil-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ====== GALLERY ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gallery-grid .wide { grid-column: span 2; }
.gallery-item {
    border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .gallery-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 0.75rem; font-size: 0.78rem; color: #FFFFFF;
}
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid .wide { grid-column: span 2; }
}

/* ====== FAQ ====== */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 2rem; }
.faq-question {
    font-size: 1.05rem; font-weight: 600; color: var(--text);
    margin-bottom: 0.75rem;
}
.faq-answer { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; color: var(--accent-dark); }

/* ====== FUENTES ====== */
.fuentes { background: var(--secondary); border-top: 1px solid var(--border); }
.fuentes h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.fuentes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.fuente-cat h3 { font-size: 0.85rem; color: var(--accent); margin-bottom: 0.5rem; }
.fuente-cat ul { list-style: none; }
.fuente-cat li { padding: 0.3rem 0; }
.fuente-cat a { color: var(--text-muted); text-decoration: none; font-size: 0.78rem; transition: color 0.2s; }
.fuente-cat a:hover { color: var(--accent); }
.disclaimer {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.72rem; opacity: 0.6;
}

/* ====== FOOTER ====== */
footer {
    background: var(--sidebar-bg); padding: 4rem 0 2rem;
    text-align: center; color: var(--sidebar-text);
}
.footer-cta { max-width: 500px; margin: 0 auto 2rem; }
.footer-cta h2 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--sidebar-text); }
.footer-cta p { color: var(--sidebar-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer-buttons {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-links {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    margin-bottom: 2rem; padding-top: 2rem; border-top: 1px solid var(--sidebar-border);
}
.footer-links a { color: var(--sidebar-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { color: var(--sidebar-muted); font-size: 0.72rem; opacity: 0.5; }
.footer-msg {
    font-size: 1.1rem; font-style: italic; color: var(--sidebar-muted);
    margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto;
    font-family: 'Playfair Display', Georgia, serif;
}

/* ====== LINK CARDS (landing -> sub-pages) ====== */
.link-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem; margin-bottom: 3rem;
}
.link-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
    text-decoration: none; color: var(--text);
    transition: all 0.2s;
    display: block;
    box-shadow: var(--shadow-sm);
}
.link-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.link-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.link-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.link-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* ====== PAGE BACK LINK ====== */
.page-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem;
    margin-bottom: 2rem; transition: color 0.2s;
}
.page-back:hover { color: #FFFFFF; }

/* ====== INSTAGRAM EMBED ====== */
.instagram-embed-wrapper {
    max-width: 540px;
    margin: 2rem auto;
}

/* ====== FLOATING WHATSAPP BUTTON ====== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

/* ====== DUPLEX SHOWCASE ====== */
.duplex-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.duplex-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duplex-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.duplex-card video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #1a1a1a;
}

.duplex-card-label {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.duplex-card-label span {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

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

/* ====== LOTEO MAP (Hotspot Mapping) ====== */
.loteo-map {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.loteo-map img {
    width: 100%;
    display: block;
}

.loteo-map svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loteo-polygon {
    fill: transparent;
    stroke: transparent;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.25s, stroke 0.25s;
}

.loteo-polygon.disponible:hover {
    fill: rgba(63, 74, 60, 0.30);
    stroke: rgba(63, 74, 60, 0.70);
}

.loteo-polygon.agotada {
    fill: rgba(0, 0, 0, 0.10);
    cursor: default;
}

.loteo-polygon.agotada:hover {
    fill: rgba(0, 0, 0, 0.18);
    stroke: rgba(0, 0, 0, 0.30);
}

.loteo-tooltip {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    z-index: 20;
    min-width: 180px;
    transform: translate(-50%, -110%);
    opacity: 0;
    transition: opacity 0.2s;
}

.loteo-tooltip.visible {
    opacity: 1;
}

.loteo-tooltip-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.loteo-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.loteo-tooltip-row .val {
    font-weight: 600;
    color: var(--text);
}

.loteo-tooltip-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.4rem;
}

.loteo-tooltip-badge.disponible {
    background: rgba(63, 74, 60, 0.10);
    color: var(--success);
}

.loteo-tooltip-badge.agotada {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.loteo-leyenda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.loteo-leyenda-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.loteo-leyenda-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.loteo-leyenda-dot.disponible {
    background: rgba(63, 74, 60, 0.40);
    border: 1px solid rgba(63, 74, 60, 0.60);
}

.loteo-leyenda-dot.agotada {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.20);
}

/* Modo Mapeo */
.mapeo-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100vh;
    background: #1a1a1a;
    color: #e0e0e0;
    z-index: 9999;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Inter', monospace;
    font-size: 0.82rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
}

.mapeo-panel h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.mapeo-panel pre {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.5;
    max-height: 50vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.mapeo-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin: 0.25rem;
    transition: background 0.2s;
}

.mapeo-btn:hover {
    background: #444;
}

.mapeo-btn.primary {
    background: var(--accent);
    border-color: var(--accent-dark);
}

.mapeo-vertex {
    fill: #ff3333;
    stroke: #fff;
    stroke-width: 1;
    cursor: move;
}

.mapeo-line {
    fill: none;
    stroke: #ff3333;
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
}

.mapeo-polygon-preview {
    fill: rgba(255, 50, 50, 0.15);
    stroke: #ff3333;
    stroke-width: 1.5;
}

.mapeo-info {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.82rem;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 768px) {
    .loteo-tooltip {
        font-size: 0.78rem;
        min-width: 160px;
    }
    .mapeo-panel {
        width: 100%;
        height: 40vh;
        top: auto;
        bottom: 0;
    }
}
