@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- Global Design Tokens --- */
:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: rgba(30, 30, 30, 0.6);
    --color-primary: #9E8E60;
    --color-primary-hover: #b5a36c;
    --color-secondary: #776B4A;
    --color-text-main: #f0f0f0;
    --color-text-muted: #d7d7d7;
    --color-accent-glow: rgba(158, 142, 96, 0.4);

    /* Typography */
    --font-main: "Be Vietnam Pro", sans-serif;
    --font-title: "fuenteTitulos", serif;

    /* Spacing */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Effects */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
    --backdrop-blur: blur(12px);
    --border-radius-card: 24px;
    --border-radius-pill: 50px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
    font-family: 'fuenteTitulos';
    src: url('../fuente/montecaniPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Base Styles --- */
body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    margin: 0;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

a img {
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* --- Header & Navigation --- */
header {
    background: linear-gradient(to bottom, #000000, #001010);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    padding-top: 80px;
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(48, 48, 48, 0.3);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 2px solid #417878;
    border-radius: var(--border-radius-pill);
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0 auto;
    padding: 0;
    gap: 30px;
    align-items: center;
    margin-top: 2px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
    font-family: var(--font-title);
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-icon img {
    display: none;
}

.menu-icon img {
    pointer-events: auto;
}

.imagenBanner img {
    width: 100%;
    max-width: 700px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections & Layout --- */
main {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    max-width: 1400px;
}

/* Separators */
.separador {
    margin: var(--spacing-lg) 0;
    display: flex;
    justify-content: center;
    opacity: 0.3;
}

.separador img {
    width: 80%;
    max-width: 800px;
}

/* --- Filtros --- */
#tituloVoces {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: -15px;
    /* Pull filters slightly closer */
}

#tituloVoces h1 {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #e0c888, #9E8E60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filtros-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Permitir que los 4 filtros bajen a nueva línea si no caben */
    gap: 20px;
    margin: var(--spacing-lg) auto;
    padding: 20px 30px;
    background: var(--color-bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-pill);
    width: 90%;
    max-width: 900px;
}

.filtro-grupo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filtro-grupo label {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.filtro-grupo select {
    background: rgba(10, 10, 10, 0.8);
    color: var(--color-text-main);
    border: 1px solid var(--color-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.filtro-grupo select:hover,
.filtro-grupo select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(158, 142, 96, 0.4);
}

.filtro-grupo select option {
    background: var(--color-bg-dark);
    color: var(--color-text-main);
}

/* --- Voices Grid (Cards) --- */
.muestras-container {
    width: auto;
    margin-bottom: var(--spacing-xl);
}

.muestras-grid-base {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 16px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
}

.muestra-item {
    background: var(--color-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-card);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Contenido alineado a la izquierda */
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.muestra-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(158, 142, 96, 0.3);
    background: rgba(40, 40, 40, 0.8);
}

.muestra-item h3,
.muestra-item h4 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-family: var(--font-main);
    text-align: left;
    width: 100%;
    background: linear-gradient(to right, #e0c888, #9E8E60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.episodio-fecha {
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.descripcion-muestra {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
    /* Para que empuje el iframe hacia abajo si hay espacio */
}

/* Audio Iframe container */
.podcast-embed {
    width: 100%;
    margin-top: auto;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.etiquetas-lista {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    width: 100%;
    text-align: right;
}

/* --- Contact Section --- */
.texto3 {
    text-align: center;
    margin: var(--spacing-lg) auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#titulo3 h1 {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #e0c888, #9E8E60);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#texto3 p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.botonAyudaPadre {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    display: flex;
    justify-content: center;
}

.botonAyuda {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 50px;
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.botonAyuda p {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.botonAyuda:hover {
    background: var(--color-primary);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.botonAyuda:hover p {
    color: #000;
}

/* --- Footer --- */
.pie {
    background-color: #000;
    padding: 60px 0;
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
}

.textosPie {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.textoPie p {
    color: #888;
    font-size: 0.9rem;
    transition: 0.3s;
}

.textoPie p:hover {
    color: var(--color-primary);
}

.copy p {
    color: #555;
    font-size: 0.8rem;
}

/* Scroll Top Button */
.botonVolver {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.botonVolver.show {
    opacity: 1;
    visibility: visible;
}

.botonVolver:hover {
    transform: translateY(-5px);
    background-color: #fff;
}

.botonVolver img {
    width: 20px;
    height: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .muestras-grid-base {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    header {
        overflow: visible;
        z-index: 1000;
    }

    .imagenBanner {
        overflow: hidden;
        border-radius: 0 0 20px 20px;
        max-height: 400px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navbar {
        width: 100%;
        border-radius: 0;
        top: 0;
        transform: none;
        left: 0;
        justify-content: space-between;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.9);
        border: none;
        box-shadow: none;
    }

    .menu-icon {
        display: block;
        z-index: 2001;
        position: relative;
    }

    .menu-icon img {
        display: block;
        width: 32px;
        filter: brightness(0) invert(1);
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 40px;
        z-index: 2000;
    }

    .nav-links.open {
        left: 0;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text-muted);
        display: block;
        padding: 0px;
    }

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--color-primary);
    }
}

@media (max-width: 800px) {
    body {
        overflow-x: hidden;
    }

    .imagenBanner img {
        margin: auto;
        width: 90%;
        height: auto;
    }

    .botonVolver {
        height: 40px;
        width: 40px;
        margin-right: -25px;
    }

    .botonVolver img {
        height: 20px;
        width: 20px;
    }

    .muestras-grid-base {
        grid-template-columns: 1fr;
        padding: 0 20px;
        width: 90%;
        gap: 24px;
    }

    .muestra-item {
        height: auto;
        padding: 24px;
    }

    .filtros-container {
        flex-direction: column;
        align-items: center;
        border-radius: 20px;
        gap: 10px;
        padding: 15px 10px;
    }

    .filtro-grupo {
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .filtro-grupo label {
        font-size: 0.95rem;
    }

    .filtro-grupo select {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 435px) {
    .textosPie {
        flex-direction: column;
    }
}

/* --- Laptops / Normal Desktops Scaling (1201px - 1920px) --- */
@media (min-width: 1201px) and (max-width: 1920px) {
    body {
        zoom: 0.9;
    }
}

/* --- Large Screens Scaling (> 1920px) --- */
@media (min-width: 1921px) {
    body {
        zoom: 0.8;
    }
}