/* ==========================================
   1. VARIABLES DE COLOR
   ========================================== */
:root {
    --bg-color: #c298cf;
    --text-dark: #2a2a2a;
    --text-light: #5a5a5a;
    --accent-color: #c44b3c;
    --accent-hover: #a03a2d;
    --btn-secondary-bg: #e0dcd3;
    --btn-secondary-text: #2a2a2a;
}

/* ==========================================
   2. RESET Y ESTILOS BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    cursor: none; /* cursor personalizado */
}

a, button, .floating-img, #logo {
    cursor: none;
}

/* ==========================================
   3. CURSOR PERSONALIZADO
   ========================================== */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--btn-secondary-bg);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

#custom-cursor.cursor-hover {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
}

/* ==========================================
   4. CABECERA Y LOGO
   ========================================== */
header {
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

#cta-header {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ==========================================
   5. PRIMERA PANTALLA (header + hero + nav)
   Agrupa los tres en un bloque de 1 viewport, centrado con
   flexbox, para que "Canciones" no asome en la primera vista.
   Requiere envolver header.php + .hero + nav.php en
   <div class="hero-screen">...</div> dentro de index.php.
   ========================================== */
.hero-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh; /* en móvil, descuenta la barra de direcciones */
}

.hero-screen header {
    flex: 0 0 auto;
}

.hero-screen .main-nav {
    flex: 0 0 auto;
}

.hero {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    pointer-events: auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .accent {
    font-style: italic;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 500px;
}

/* --- Imágenes flotantes (folklore) --- */
#floating-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-img {
    position: absolute;
    opacity: 0.8;
    touch-action: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-img.dragging {
    opacity: 1;
    z-index: 50;
}

.floating-img.fading-out {
    opacity: 0;
    transform: scale(0.5);
}

/* ==========================================
   6. NAVEGACIÓN TIPO BOTONES
   ========================================== */
.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 4rem 4rem;
    position: relative;
    z-index: 10;
}

.nav-btn {
    flex: 0 0 auto;
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    background-color: var(--accent-color);
    color: white;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================
   7. BOTONES GENERALES
   ========================================== */
button {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-bg);
    transform: translateY(-2px);
}

/* Para que los enlaces <a> con estas clases luzcan igual que los <button> */
a.btn-primary,
a.btn-secondary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* "Ver todas / Ver todos" y "Volver al inicio" */
a.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    background-color: var(--text-dark);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    width: auto;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-more-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

a.btn-more:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(196, 75, 60, 0.4);
}

a.btn-more:hover .btn-more-arrow {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.35);
}

/* Variante "volver": transparente con borde */
a.btn-more--ghost {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    box-shadow: none;
}

a.btn-more--ghost .btn-more-arrow {
    background-color: rgba(0, 0, 0, 0.1);
}

a.btn-more--ghost:hover {
    background-color: var(--text-dark);
    color: #fff;
}

/* ==========================================
   8. SECCIONES GENÉRICAS
   ========================================== */
.section {
    padding: 6rem 4rem;
    position: relative;
    z-index: 10;
}

/* Páginas internas (canciones.php, videos.php...) no tienen hero
   encima, así que dejamos algo más de aire arriba */
.page-section {
    padding-top: 4rem;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.section-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.empty-state {
    color: var(--text-light);
    font-style: italic;
}

.form-success {
    background-color: #dff5e1;
    color: #1e6b34;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-error {
    background-color: #fbdcd7;
    color: #8a2f21;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Fondo unificado en todas las secciones */
.songs-section,
.links-section,
.video-section,
.contact-section {
    background-color: var(--bg-color);
}

/* ==========================================
   9. CANCIONES
   ========================================== */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border-radius: 16px;
    flex-wrap: wrap;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.play-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.song-info {
    flex: 1;
    min-width: 150px;
}

.song-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.song-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.song-item audio {
    height: 36px;
    max-width: 280px;
    width: 100%;
}

/* Logotipos de plataformas debajo de cada canción (chip con icono + nombre) */
.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border-radius: 50px;
    background-color: #f4f2ef;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background-color 0.2s ease, color 0.2s ease;
}

.platform-chip img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

a.platform-chip:hover {
    background-color: var(--platform-color, var(--accent-color));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.platform-chip.is-disabled {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: default;
}

/* ==========================================
   10. VIDEO
   ========================================== */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* ratio 16:9 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.video-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.video-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Botón "Ver descripción" */
.desc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1px solid #ccc;
    background-color: transparent;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.desc-toggle:hover {
    background-color: var(--btn-secondary-bg);
    transform: translateY(-2px);
}

.desc-toggle .desc-toggle-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.desc-toggle[aria-expanded="true"] .desc-toggle-arrow {
    transform: rotate(180deg);
}

.video-desc {
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.video-desc[hidden] {
    display: none;
}

/* ==========================================
   11. GRAMOLA (galería tipo carrusel: canciones y videos)
   ========================================== */
.gramola {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    outline: none;
}

.gramola-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 0 1 auto; /* se ajusta a su contenido, no se estira a ocupar todo el ancho */
    max-width: 100%;
    min-width: 0;   /* permite que haga scroll en vez de desbordar */
}

.gramola-track::-webkit-scrollbar {
    display: none;
}

.gramola-item {
    flex: 0 0 auto;
    width: min(340px, 78vw);
    scroll-snap-align: center;
    opacity: 0.5;
    transform: scale(0.86);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gramola-item.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Los videos son más anchos: prácticamente uno a la vez */
.video-section .gramola-item {
    width: min(640px, 86vw);
}

.gramola-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--text-dark);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.gramola-arrow:hover {
    background-color: var(--accent-color);
    transform: scale(1.08);
}

.gramola-dots {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.gramola-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: var(--btn-secondary-bg);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.gramola-dot.is-active {
    background-color: var(--accent-color);
    transform: scale(1.4);
}

.gramola-item .video-card,
.gramola-item .song-item {
    height: 100%;
}

/* ==========================================
   12. ENLACES ASOCIADOS
   ========================================== */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 1rem;
}

.link-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.link-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================
   13. CONTACTO
   ========================================== */
.contact-form {
    max-width: 500px;
}

.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    background-color: white;
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    background-color: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ==========================================
   14. MODALES (Login/Registro y Plataforma)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 2rem;
    text-align: center;
}

/* Tabs de Acceder / Registrarse */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background-color: #f4f2ef;
    border-radius: 50px;
    padding: 0.3rem;
}

.auth-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 50px;
    background-color: transparent;
    color: var(--text-light);
}

.auth-tab.active {
    background-color: var(--accent-color);
    color: white;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-switch {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-link {
    width: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: inherit;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: underline;
}

.auth-link:hover {
    color: var(--accent-hover);
    transform: none;
}

/* Modal reproductor de plataforma: más estrecho, sin padding extra abajo */
.platform-modal-content {
    max-width: 360px;
    padding: 2.5rem 1.5rem 1.5rem;
}

#platform-modal-body iframe {
    border-radius: 12px;
}

/* ==========================================
   15. MENSAJES FLASH (registro / verificación / login)
   ========================================== */
.flash-wrapper {
    padding: 0 4rem;
    position: relative;
    z-index: 10;
}

.flash {
    max-width: 700px;
    margin: 0 auto 1rem;
    text-align: center;
}

.flash a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================
   REDES SOCIALES, BOTÓN HAMBURGUESA Y PANEL MÓVIL
   ========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--btn-secondary-bg);
    color: var(--text-dark);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Botón hamburguesa: oculto en escritorio, visible solo en móvil */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--btn-secondary-bg);
    border: none;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Fondo oscuro detrás del panel */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Panel lateral */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(300px, 80vw);
    background-color: var(--bg-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.08);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-dark);
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* en móvil, la navegación vive en el panel hamburguesa */
    }
    .hamburger-btn {
        display: flex;
    }
}

/* ==========================================
   TRANSICIÓN ENTRE PÁGINAS (nubes + figuras folk)
   ========================================== */
#page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-hover), var(--accent-color));
    transition: opacity 0.45s ease;
}

#page-transition.is-active {
    opacity: 1;
    pointer-events: all;
}

.pt-cloud {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    filter: blur(50px);
    opacity: 0;
    transform: scale(0.4);
    transition: transform 0.9s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.9s ease;
}

#page-transition.is-active .pt-cloud {
    opacity: 1;
    transform: scale(1);
}

.pt-cloud-1 { width: 380px; height: 380px; top: -10%;  left: -8%;  }
.pt-cloud-2 { width: 300px; height: 300px; bottom: -15%; right: -6%; transition-delay: 0.08s; }
.pt-cloud-3 { width: 260px; height: 260px; top: 30%;   left: 55%;  transition-delay: 0.15s; }

.pt-folk {
    position: absolute;
    width: 64px;
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

#page-transition.is-active .pt-folk {
    opacity: 0.95;
    transform: scale(1) rotate(var(--rot, 15deg));
}

/* ==========================================
   SECCIÓN NOTICIAS
   ========================================== */
.noticias-section {
    background-color: var(--bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--btn-secondary-bg);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.news-card-date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.news-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

/* 17. Footer */
.site-footer {
    background: #3d1f49;
    color: #ede3f0;
    margin-top: 4rem;
    padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
}
.footer-col { flex: 1 1 220px; min-width: 200px; }
.footer-logo { height: 42px; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.92rem; line-height: 1.5; color: #d9c7df; }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1rem; }
.footer-social a { color: #ede3f0; opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: #d9c7df; text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-newsletter p { font-size: 0.9rem; color: #d9c7df; margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-form input[type="email"] {
    flex: 1 1 160px;
    padding: 0.65rem 1rem;
    border-radius: 30px;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
}
.newsletter-form .btn-more { flex: 0 0 auto; padding: 0.65rem 1.4rem; font-size: 0.9rem; }

.footer-legal {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #c6b2cf;
}
.footer-legal-links a { color: #c6b2cf; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }

/* ==========================================
   16. RESPONSIVE (un único bloque por punto de ruptura)
   ========================================== */
@media (max-width: 768px) {
    
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-legal { flex-direction: column; text-align: center; }
    
    .pt-folk {
        width: 46px;
    }
    
    header {
        padding: 1.5rem 2rem;
    }

    .hero {
        padding: 1.5rem 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .main-nav {
        padding: 0 2rem 3rem;
        gap: 0.75rem;
    }

    .section {
        padding: 4rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .song-item audio {
        max-width: 100%;
    }

    button {
        width: 100%;
    }

    a.btn-more {
        width: 100%;
        justify-content: center;
    }

    .gramola {
        gap: 0.5rem;
    }

    .gramola-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .gramola-item {
        width: min(300px, 80vw);
    }

    .video-section .gramola-item {
        width: min(480px, 88vw);
    }

    .gramola-track {
        padding: 1.25rem 0.25rem;
        gap: 1rem;
    }

    .flash-wrapper {
        padding: 0 2rem;
    }
}

@media (max-width: 420px) {
    .gramola-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .gramola-item {
        width: min(260px, 84vw);
    }

    .video-section .gramola-item {
        width: 88vw;
    }

    .gramola-track {
        gap: 0.75rem;
        padding: 1rem 0.15rem;
    }
}