/* Estilos específicos para la página Descubre Chiloé */
.descubre-chiloe-page {
    padding-top: 85px;
    background: linear-gradient(135deg, #0B1016 0%, #1A1F2E 100%);
    min-height: 100vh;
    color: #E2E8F0;
}

.descubre-header {
    padding: 1.5rem 0;
    text-align: center;
    margin-bottom: 0.5rem;
}

.descubre-title {
    font-size: 2rem;
    font-weight: 800;
    color: #76b900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.descubre-subtitle {
    font-size: 1rem;
    color: #A0AEC0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

.video-container {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.temas-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tema-card {
    background: #181c22;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #2A3441;
}

.tema-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #232323;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tema-icon:hover {
    border-color: #64B5F6;
    transform: scale(1.05);
}

.tema-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.tema-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64B5F6;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tema-description {
    font-size: 1rem;
    color: #A0AEC0;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    align-items: start;
    margin-top: auto;
    justify-items: center;
}

.recurso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.recurso-image {
    width: 150px;
    height: 150px;
    border-radius: 0.5rem;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 0.125rem;
}

.recurso-image:hover {
    transform: scale(1.05);
    border-color: #64B5F6;
}

.audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-player {
    width: 150px;
    height: 30px;
    border-radius: 15px;
    background: #181c22;
    border: 1px solid #64B5F6;
    margin-top: 0.125rem;
}

.audio-player::-webkit-media-controls-panel {
    background-color: #181c22;
}


/* Responsive */
@media (min-width: 768px) {
    .tema-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        min-height: 400px;
    }
    
    .tema-icon {
        margin-right: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .tema-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .tema-title {
        text-align: left;
    }
    
    .tema-description {
        text-align: left;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .descubre-title {
        font-size: 2rem;
    }
    
    .descubre-subtitle {
        font-size: 1rem;
    }

    .tema-card {
        margin-bottom: 1.5rem;
    }

    .tema-icon {
        width: 80px;
        height: 80px;
    }

    .tema-icon img {
        width: 60px;
        height: 60px;
    }

    .tema-title {
        font-size: 1.3rem;
    }

    .tema-description {
        font-size: 0.9rem;
    }
    
    .recursos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .recurso-image {
        width: 100px;
        height: 100px;
    }
    
    .audio-player {
        width: 100px;
    }
}

/* Estilos para el Tema Claro */
html[data-theme='light'] .descubre-chiloe-page {
    background: var(--background-light, #F8F8F8);
    color: var(--text-dark, #2d3748);
}

html[data-theme='light'] .descubre-title {
    color: var(--primary-color, #312783);
}

html[data-theme='light'] .descubre-subtitle {
    color: var(--text-secondary, #4a5568);
}

html[data-theme='light'] .tema-card {
    background: var(--light-color, #FFFFFF);
    border-color: var(--border-color, #E2E8F0);
    box-shadow: var(--shadow);
}

html[data-theme='light'] .tema-icon {
    background: #f7fafc;
}

html[data-theme='light'] .tema-icon:hover {
    border-color: var(--primary-color, #312783);
}

html[data-theme='light'] .tema-title {
    color: var(--primary-color, #312783);
}

html[data-theme='light'] .tema-description {
    color: var(--text-secondary, #4a5568);
}

html[data-theme='light'] .recurso-image:hover {
    border-color: var(--primary-color, #312783);
}

html[data-theme='light'] .audio-player {
    background: #f7fafc;
    border-color: var(--primary-color, #312783);
}

html[data-theme='light'] .audio-player::-webkit-media-controls-panel {
    background-color: #f7fafc;
}

html[data-theme='light'] .modal-content {
    background-color: var(--light-color, #FFFFFF);
}

html[data-theme='light'] .modal-close {
    color: #333;
    background: rgba(255, 255, 255, 0.7);
}
