:root {
    --bg-dark: #2d2d2a;
    --accent-gold: #c5b38d;
    --accent-gold-hover: #b4a27a;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --white: #ffffff;
    --status-available: #4caf50;
    --status-reserved: #ffeb3b;
    --status-sold: #f44336;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --shadow-premium: 0 10px 30px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a1a;
    color: var(--text-light);
    font-family: var(--font-body);
    overflow: hidden; /* El mapa se scrollea internamente */
}

#app {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Panzoom maneja el scroll ahora */
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-wrapper {
    position: relative;
    cursor: grab;
    transform-origin: 0 0;
}

.map-wrapper:active {
    cursor: grabbing;
}

.map-image {
    display: block;
    max-width: none;
    height: auto;
}

.hotspots-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hotspot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 1.5px solid white;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
    color: white;
    font-family: var(--font-body);
}

.hotspot-number {
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.6);
    box-shadow: 0 0 15px white;
    z-index: 50;
}

.hotspot.available { background-color: var(--status-available); }
.hotspot.reserved { background-color: var(--status-reserved); cursor: not-allowed; }
.hotspot.sold { background-color: var(--status-sold); cursor: not-allowed; }

/* Info Box / Tooltip */
.info-box {
    position: fixed;
    top: 100px;
    left: 100px;
    background: var(--white);
    color: #333;
    width: 320px;
    padding: 0;
    box-shadow: var(--shadow-premium);
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}

.info-box.hidden { display: none; }

.info-box-header {
    background: #f8f8f8;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.info-box-header h2 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 24px;
    letter-spacing: 2px;
}

.close-info {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.info-box-body {
    padding: 20px;
}

.info-box-body p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.info-box-body span {
    color: #999;
}

.email-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.email-section input {
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    outline: none;
}

.terms {
    font-size: 10px !important;
    font-style: italic;
}

.terms a { color: var(--accent-gold); }

.btn-primary {
    background-color: var(--bg-dark);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.btn-primary:hover { background-color: #000; }

.status-msg {
    margin-top: 15px;
    color: var(--status-sold);
    font-weight: 600;
    text-align: center;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
}

.modal.hidden { display: none; }

.modal-content {
    background-color: var(--bg-dark);
    color: var(--text-light);
    width: 95%;
    max-width: 1200px;
    position: relative;
    padding: 60px 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-content.small { max-width: 500px; }

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: white; font-size: 32px;
    cursor: pointer;
}

/* Pricing Layout */
.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.logo-placeholder {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 5px;
    color: var(--accent-gold);
    line-height: 1;
}

.logo-placeholder span {
    font-size: 10px;
    letter-spacing: 2px;
    color: white;
}

.pricing-title-box h2 {
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-align: right;
}

.pricing-title-box p {
    color: var(--accent-gold);
    text-align: right;
    font-size: 14px;
}

.pricing-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.summary-item .value { font-size: 24px; }
.summary-item.big .value { font-size: 36px; color: var(--accent-gold); }

.btn-interested {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 20px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-interested:hover { background-color: var(--accent-gold-hover); }

/* Table Styles */
.pricing-table-container { overflow-x: auto; }

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pricing-table th {
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 12px;
    text-align: left;
    font-weight: 700;
}

.pricing-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pricing-table tr:hover { background: rgba(255,255,255,0.05); }

.legend {
    margin-top: 20px;
    font-size: 11px;
    font-style: italic;
    color: #999;
}

/* Form Styles */
.contact-header { text-align: center; margin-bottom: 30px; }
.contact-header p { font-style: italic; color: var(--accent-gold); }
.contact-header h2 { font-size: 48px; letter-spacing: 4px; }

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

.contact-form input, .contact-form textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 15px 0;
    color: white;
    font-family: inherit;
    outline: none;
}

.contact-form textarea { height: 80px; resize: none; }

.btn-submit {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.hidden { display: none !important; }

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    z-index: 1000;
}

/* Leyenda y Aviso */
.map-legend-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.disclaimer {
    color: white;
    font-size: 11px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 2px 10px;
    border-radius: 4px;
}

.map-legend {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 15px 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    pointer-events: auto;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.legend-title {
    border-right: 1px solid rgba(0,0,0,0.2);
    padding-right: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-item .dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-item .dot.available { background-color: #00ff00; border: 2px solid white; }
.legend-item .dot.reserved { background-color: #ffcc00; border: 2px solid white; }
.legend-item .dot.sold { background-color: #ff0000; border: 2px solid white; }

/* Responsive */
@media (max-width: 900px) {
    .map-legend {
        padding: 10px 15px;
        gap: 10px;
        font-size: 10px;
    }
    .legend-title { padding-right: 10px; }
    .disclaimer { font-size: 8px; width: 90%; text-align: center; }
}
