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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f3e6; /* Fondo color arena claro, inspirado en tejidos indígenas */
    color: #3a3226; /* Color de texto más cálido */
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    height: 150%;
    margin: 0 auto;
    padding: 20px;
}

.main-title {
    text-align: center;
    margin-bottom: 30px;
    color: #8b4513; /* Marrón tierra, color tradicional en artesanías indígenas */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.content {
    height: 150%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Sidebar con lista de departamentos */
.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #fff9e6; /* Fondo crema claro */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 700px;
    overflow-y: auto;
    border-left: 4px solid #c75a00; /* Borde naranja terracota, color presente en cerámicas indígenas */
}

.sidebar h2 {
    margin-bottom: 15px;
    color: #8b4513; /* Marrón tierra */
    border-bottom: 2px solid #c75a00; /* Naranja terracota */
    padding-bottom: 8px;
}

.departamentos-lista {
    list-style-type: none;
}

.departamentos-lista li {
    padding: 8px 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.departamentos-lista li:hover {
    background-color: #f0e6d2; /* Beige claro */
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.departamentos-lista li.active {
    background-color: #c75a00; /* Naranja terracota */
    color: white;
    transform: translateX(5px);
}

/* Contenedor del mapa */
.map-container {
    flex: 2;
    min-width: 300px;
    background-color: #fff9e6; /* Fondo crema claro */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150%;
    border: 1px solid #e6d2ba; /* Borde sutil color arena */
}

.mapa-svg {
    width: 100%;
    height: auto;
    min-height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mapa-svg svg {
    aspect-ratio: 1 / 1; /* o 4 / 3, o el ratio real de tu SVG */
    width: 100%;
    height: auto;
    display: block;
    max-height: 750px; /* o lo que consideres */
    object-fit: contain;
}

/* Estilos para los departamentos en el SVG */
.mapa-svg path {
    fill: #e6d2ba; /* Color arena base, inspirado en tejidos indígenas */
    stroke: #fff;
    stroke-width: 1px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.mapa-svg path:hover {
    fill: #d9a760; /* Color ocre dorado al pasar el cursor */
    transform: scale(1.02);
    transform-origin: center;
}

.mapa-svg path.active {
    fill: #c75a00; /* Naranja terracota cuando está seleccionado */
    transform: scale(1.03);
    transform-origin: center;
}

/* Modal de información */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff9e6; /* Fondo crema claro */
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.5s ease;
    border-top: 5px solid #c75a00; /* Borde superior naranja terracota */
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

#modal-info-content h1 {
    color: #8b4513; /* Marrón tierra */
    margin-bottom: 15px;
    border-bottom: 2px solid #c75a00; /* Naranja terracota */
    padding-bottom: 8px;
}

#modal-info-content h2 {
    color: #6b5b4c; /* Marrón medio */
    margin-top: 15px;
    margin-bottom: 10px;
}

#modal-info-content h3 {
    color: #c75a00; /* Naranja terracota */
    margin-top: 15px;
    margin-bottom: 5px;
}

#modal-info-content p {
    margin-bottom: 10px;
}

/* Estilos para el buscador */
.buscador-container {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    gap: 10px;
}

.buscador-input {
    padding: 10px 15px;
    border: 1px solid #e6d2ba;
    border-radius: 4px;
    width: 300px;
    font-size: 16px;
    background-color: #fff9e6;
    color: #3a3226;
    transition: all 0.3s ease;
}

.buscador-input:focus {
    outline: none;
    border-color: #c75a00;
    box-shadow: 0 0 5px rgba(199, 90, 0, 0.3);
}

.boton-buscar {
    padding: 10px 20px;
    background-color: #c75a00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.boton-buscar:hover {
    background-color: #a64a00;
    transform: translateY(-2px);
}

/* Botón volver */
.boton-volver {
    padding: 8px 16px;
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.boton-volver:hover {
    background-color: #6b3000;
    transform: translateY(-2px);
}

/* Estilos para los enlaces */
.enlace-lengua {
    color: #c75a00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.enlace-lengua:hover {
    color: #8b4513;
    text-decoration: underline;
    transform: translateX(3px);
}

/* Separador entre lenguas */
.separador-lengua {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(199, 90, 0, 0), rgba(199, 90, 0, 0.5), rgba(199, 90, 0, 0));
    margin: 15px 0;
}

/* Nombre de lengua con efecto */
.nombre-lengua {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.nombre-lengua:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #c75a00;
    border-radius: 50%;
}

/* Estilos para la sección de enlaces adicionales */
.enlaces-adicionales {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff9e6;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #c75a00;
}

.enlaces-adicionales h2 {
    margin-bottom: 20px;
    color: #8b4513;
    border-bottom: 2px solid #c75a00;
    padding-bottom: 8px;
    text-align: center;
}

/* Contenedor de tarjetas de enlaces */
.tarjetas-enlaces {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Estilos para cada tarjeta */
.tarjeta-enlace {
    flex: 1;
    min-width: 250px;
    background-color: #f8f3e6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #e6d2ba;
    border-left: 4px solid #c75a00;
}

.tarjeta-enlace:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(139, 69, 19, 0.2);
    border-color: #c75a00;
}

.tarjeta-contenido {
    padding: 20px;
    transition: all 0.3s ease;
}

.tarjeta-enlace:hover .tarjeta-contenido {
    background-color: #f0e6d2;
}

.tarjeta-enlace h3 {
    color: #8b4513;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.tarjeta-enlace h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c75a00;
    transition: width 0.4s ease;
}

.tarjeta-enlace:hover h3 {
    color: #c75a00;
}

.tarjeta-enlace:hover h3:after {
    width: 100%;
}

.tarjeta-enlace p {
    color: #3a3226;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tarjeta-enlace:hover p {
    color: #000;
}

/* Efecto de brillo al pasar el cursor */
.tarjeta-enlace:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tarjeta-enlace:hover:before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .content {
        flex-direction: column;
    }
    
    .sidebar, .map-container {
        width: 100%;
        min-width: 100%;
    }
    
    .buscador-container {
        flex-direction: column;
        align-items: center;
    }
    
    .buscador-input {
        width: 100%;
    }

    
    .map-container {
        order: 1;
    }
    
    .sidebar {
        order: 2;
    }
    
    .modal-content {
        width: 90%;
        margin: 15% auto;
    }
    
    .tarjetas-enlaces {
        flex-direction: column;
    }
    
    .tarjeta-enlace {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .sidebar h2, #modal-info-content h1 {
        font-size: 1.2rem;
    }
    
    #modal-info-content h3 {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 20% auto;
    }
}