:root {
    --rsi-primary: #2cccc4;
    --rsi-primary-dark: #1fa39c;
    --rsi-secondary: #db545a;
    --rsi-dark: #1a1a2e;
    --rsi-darker: #12121e;
    --rsi-light: #f8f9fa;
    --rsi-text: #333333;
    --rsi-text-light: #6c757d;
    --rsi-white: #ffffff;
    --rsi-border-radius: 12px;
    --rsi-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    --rsi-box-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
    --rsi-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--rsi-text);
    line-height: 1.7;
    background-color: var(--rsi-white);
    overflow-x: hidden;
}

.rsi-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.rsi-display-font {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Estilos Mapa */
.rsi-map-section {
    padding: 100px 0;
    background: var(--rsi-dark);
    color: var(--rsi-white);
}

.rsi-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Mensaje de última actualización */
.rsi-update-notice {
    background: rgba(44, 204, 196, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-left: 4px solid var(--rsi-primary);
}

.rsi-update-notice i {
    color: var(--rsi-primary);
}

/* Texto descriptivo */
.rsi-map-description {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.rsi-map-alert {
    background: rgba(219, 84, 90, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.rsi-map-alert i {
    color: var(--rsi-secondary);
}

.rsi-interactive-map {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.rsi-map-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rsi-map-sector {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--rsi-border-radius);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rsi-map-sector:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.rsi-map-sector[data-sector="tech"] {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.rsi-map-sector[data-sector="energy"] {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2072&q=80');
}

.rsi-map-sector[data-sector="health"] {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.rsi-map-sector[data-sector="realestate"] {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2073&q=80');
}

.rsi-sector-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: all 0.3s ease;
}

.rsi-map-sector:hover .rsi-sector-content {
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding-bottom: 30px;
}

.rsi-sector-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--rsi-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rsi-sector-teaser {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.rsi-map-sector:hover .rsi-sector-teaser {
    opacity: 1;
    transform: translateY(0);
}

.rsi-sector-teaser p {
    margin-bottom: 12px;
    color: var(--rsi-white);
    font-size: 0.95rem;
}

.rsi-map-btn {
    background: var(--rsi-primary);
    color: var(--rsi-white);
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rsi-map-btn:hover {
    background: var(--rsi-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos del Popup/Modal */
.rsi-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.rsi-map-modal.active {
    opacity: 1;
    visibility: visible;
}

.rsi-modal-content {
    background: var(--rsi-white);
    border-radius: var(--rsi-border-radius);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    color: var(--rsi-text);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.rsi-map-modal.active .rsi-modal-content {
    transform: translateY(0);
}

.rsi-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--rsi-text-light);
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1001;
}

.rsi-modal-close:hover {
    color: var(--rsi-secondary);
    background: rgba(0,0,0,0.05);
}

#rsi-modal-title {
    color: var(--rsi-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-right: 30px;
}

.rsi-modal-body {
    margin-bottom: 25px;
    line-height: 1.6;
}

.rsi-modal-body p {
    margin-bottom: 15px;
}

.rsi-modal-body strong {
    color: var(--rsi-primary-dark);
}

.rsi-modal-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rsi-modal-cta > p {
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--rsi-dark);
}

.rsi-map-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rsi-dark);
}

.rsi-map-form input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: var(--rsi-border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
}

.rsi-map-form input:focus {
    outline: none;
    border-color: var(--rsi-primary);
    box-shadow: 0 0 0 3px rgba(44, 204, 196, 0.2);
}

.rsi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    background: var(--rsi-primary);
    color: var(--rsi-white);
    border: none;
    border-radius: var(--rsi-border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rsi-btn:hover {
    background: var(--rsi-primary-dark);
    transform: translateY(-2px);
}

.rsi-small-text {
    font-size: 0.85rem;
    color: var(--rsi-text-light);
    margin-top: 15px;
    text-align: center;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--rsi-border-radius);
    display: none;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.loading i {
    color: var(--rsi-primary);
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 992px) {
    .rsi-map-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rsi-map-alert {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .rsi-map-section {
        padding: 70px 0;
    }
    
    .rsi-map-row {
        flex-direction: column;
    }
    
    .rsi-map-sector {
        min-height: 180px;
    }
    
    .rsi-modal-content {
        padding: 30px 20px;
    }
    
    #rsi-modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .rsi-map-header {
        text-align: center;
        align-items: center;
    }
    
    .rsi-map-header h2 {
        font-size: 2rem;
    }
    
    .rsi-map-alert {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .rsi-sector-content {
        padding: 20px;
    }
    
    .rsi-sector-content h3 {
        font-size: 1.3rem;
    }
    
    .rsi-map-description {
        font-size: 1rem;
    }
}