/* Estilos personalizados para el SVG del mapa */
#world-map-svg {
    background-color: transparent;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.country {
    stroke: #4b5563;
    stroke-width: 0.5px;
    transition: fill 0.2s ease-in-out;
}

.country.has-brands {
    fill: #008b8b;
}

.country.no-brands {
    fill: #cccccc;
}

.country:hover {
    fill: #005353;
    cursor: pointer;
}

.country.selected {
    fill: #012D2D;
}

/* Estilos para el tooltip flotante */
#tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    font-size: 0.9rem;
    z-index: 1000;
    transform: translate(-50%, -100%);
    white-space: nowrap;
}

/* --- INICIO: ESTILOS PARA DELIMITACIÓN VISUAL --- */

.country-section {
    background-color: #f7fafc; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    overflow: hidden; 
}

.country-header {
    background-color: #008b8b; 
    padding: 1rem 1.5rem;
}

.country-header h3 {
    color: white !important; /* Usamos !important como medida final para asegurar que se aplique */
}

.country-content-wrapper {
    padding: 1.5rem;
}

.brand-section {
    background-color: #ffffff;
    border-radius: 0.75rem; 
    padding: 1.5rem;
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    transition: box-shadow 0.3s ease-in-out;
}

.brand-section:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); 
}

/* --- FIN: ESTILOS PARA DELIMITACIÓN VISUAL --- */


/* Estilos para las pestañas (Tabs) */
.brand-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.brand-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.brand-tab.active {
    color: #008b8b;
    border-bottom-color: #008b8b;
}

.brand-tab-content {
    display: none;
}

.brand-tab-content.active {
    display: block;
}

/* Estilo para el contenedor de la historia */
.brand-history-content {
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}


/* Estilos para el carrusel (Swiper.js) */
.watches-carousel-container {
    position: relative;
    padding: 0 10px;
}

.swiper-container {
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iconic-watch-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid #e2e8f0;
    width: 90%;
    max-width: 250px;
}

.iconic-watch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.iconic-watch-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.iconic-watch-card .brand-name-display,
.iconic-watch-card .model-name-display {
    text-align: center;
}

.iconic-watch-card .brand-name-display {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iconic-watch-card .model-name-display {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
}

.iconic-watch-card a.model-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.swiper-pagination-bullet-active {
    background-color: #008b8b !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #008b8b !important;
    transform: scale(0.7);
}

/* Estilos para el modal de mensaje */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease-out;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-message {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1A2B4C;
    margin-bottom: 1.5rem;
}

.modal-close-button {
    background-color: #df453e;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-close-button:hover {
    background-color: #b62d25;
    transform: translateY(-1px);
}

/* Estilos para el botón de Volver al Mapa */
#back-to-map-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #008b8b;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#back-to-map-button.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-map-button:hover {
    background-color: #005353;
    transform: translateY(-50%) scale(1.05);
}

/* Grid de relojes original -> Ahora se usa para escritorio */
.iconic-watches-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .iconic-watches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .iconic-watches-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .watches-carousel-container {
        display: none;
    }
}

@media (max-width: 1023.98px) {
    .iconic-watches-grid {
        display: none;
    }
    .watches-carousel-container {
        display: block;
    }
}
