/* Estilos específicos para el Modal del Cotizador - Soleia */

:root {
    --primary-color: #224457;
    --accent-color: #FAEACD;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-dark: #333333;
    --text-light: #555555;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--glass-bg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease-out;
}

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

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

.modal-header {
    padding: 20px 25px 0;
    display: flex;
    justify-content: flex-end;
}

.modal-close {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
    color: var(--danger-color);
}

.modal-body {
    padding: 10px 30px 40px;
}

.lot-status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.status-dot-large {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.status-dot-large.disponible {
    background-color: var(--success-color);
}

.status-dot-large.apartado {
    background-color: var(--warning-color);
}

.status-dot-large.vendido {
    background-color: var(--danger-color);
}

#modalStatusText {
    font-family: 'DM Sans Regular', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-section h3 {
    font-family: 'Avocado', sans-serif;
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.lot-data {
    background: #fdfaf4;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(162, 143, 98, 0.2);
}

.lot-data h4,
.pricing-section h4,
.quote-section h4 {
    font-family: 'DM Sans Regular', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'DM Sans Regular', sans-serif;
}

.data-row span:first-child {
    color: var(--text-light);
}

.data-row span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.surface-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Pricing styles already defined in HTML style tag, but ensuring consistency here */
.pricing-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.price-item.highlight {
    background-color: #effbf1;
    border-color: var(--success-color);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
}

.price-value {
    font-weight: 700;
    color: var(--primary-color);
}

.payment-plan {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.plan-row,
.discount-row,
.final-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-row select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-family: 'DM Sans Regular', sans-serif;
    background: rgba(255, 255, 255, 0.9);
}

.final-price-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.final-price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}

.view-plan-btn {
    width: 100%;
    padding: 15px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-family: 'DM Sans Regular', sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.view-plan-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'DM Sans Regular', sans-serif;
}

.quote-form button {
    width: 100%;
    padding: 15px;
    background: #a28f62;
    /* Color café dorado */
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.quote-form button:hover {
    background: #8e7d56;
}

/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(34, 68, 87, 0.2);
    border-radius: 10px;
}

@media (max-width: 600px) {
    .modal-body {
        padding: 10px 20px 30px;
    }

    .info-section h3 {
        font-size: 24px;
    }

    .final-price-value {
        font-size: 20px;
    }
}