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

body {
    font-family: 'Poppins', sans-serif;
    color: #444;
}

/* ===== DISEÑO PREMIUM ===== */
.bg-app {
    background: #0b1120;
    background-size: cover;
    background-attachment: fixed;
}

/* HEADER RESPONSIVE */
.app-header {
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 4px 30px rgba(0, 242, 254, 0.1);
}

.app-header .navbar-brand {
    color: white !important;
    font-weight: 700;
}

.app-header .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: 0.3s;
}

.app-header .nav-link:hover {
    color: #00f2fe !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(10, 31, 68, 0.8), rgba(10, 31, 68, 0.8)), url('https://images.unsplash.com/photo-1507692049790-de58290a4334');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero .fecha {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* BUSCADOR */
.buscador {
    text-align: center;
    padding: 40px 20px;
}

.buscador input {
    width: 60%;
    max-width: 400px;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid #ccc;
    outline: none;
}

.buscador button {
    padding: 12px 25px;
    margin-left: 10px;
    border-radius: 30px;
    border: none;
    background: #0a1f44;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.buscador button:hover {
    background: #d4af37;
}

/* LISTA */
.lista-canciones {
    padding: 50px 5%;
}

.lista-canciones h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #0a1f44;
}

.canciones-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.canciones-container::-webkit-scrollbar {
    height: 6px;
}

.canciones-container::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 3px;
}

.canciones-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0a1f44, #d4af37);
    border-radius: 3px;
}

.cancion-card {
    background: rgba(30, 41, 59, 0.7);
    padding: 22px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 220px;
    max-width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-left: 5px solid #00f2fe;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cancion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
    background: rgba(30, 41, 59, 0.9);
}

.cancion-card h3 {
    margin-bottom: 5px;
    font-size: 15px;
    color: #ffffff;
}

.cancion-card p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.cancion-card .botones {
    display: flex;
    gap: 8px;
}

.cancion-card button,
.cancion-card .btn {
    margin-top: 0;
    margin-right: 0;
    padding: 7px 14px;
    border-radius: 20px;
    border: none;
    background: #1e293b;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cancion-card .secundario {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.cancion-card .btn-notas {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.cancion-card button:hover,
.cancion-card .btn:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}


/* FOOTER MODERNO */
.footer-moderno {
    color: rgba(10, 31, 68, 0.5);
    padding: 30px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    .buscador input {
        width: 90%;
        margin-bottom: 10px;
    }

    .buscador button {
        margin-left: 0;
    }
}

/* ===== HISTORIAL DE LISTAS ===== */
.historial-section {
    padding: 50px 5%;
    background: transparent;
}

.historial-section h2 {
    text-align: center;
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.historial-subtitulo {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 35px;
}

.historial-vacio {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    padding: 50px;
}

.historial-lista {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s;
}

.historial-lista:hover {
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.2);
}

/* Lista activa - borde verde neón */
.lista-activa {
    border-left: 5px solid #00f2fe;
    box-shadow: -5px 0 20px rgba(0, 242, 254, 0.4);
}

/* Lista pasada - borde tenue */
.lista-pasada {
    border-left: 5px solid #475569;
    opacity: 0.75;
}

.lista-pasada:hover {
    opacity: 0.9;
}

.historial-lista-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.historial-lista-info h3 {
    font-size: 18px;
    color: #ffffff;
    margin: 6px 0 8px;
}

.estado-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-activa {
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-pasada {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.historial-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.historial-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Canciones dentro del historial */
.historial-lista .canciones-container {
    padding: 0 20px 20px;
}

/* Tarjeta pasada - borde rojo */
.card-pasada {
    border-left-color: #c62828 !important;
}

/* Toggle icon */
.toggle-icon {
    font-size: 16px;
    color: #999;
    transition: transform 0.3s;
    cursor: pointer;
    user-select: none;
}

/* Colapsar/expandir canciones */
.canciones-wrapper {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.canciones-wrapper.expandido {
    max-height: 500px;
    opacity: 1;
}

.canciones-wrapper.colapsado {
    max-height: 0;
    opacity: 0;
}

/* Countdown */
.countdown {
    color: #00f2fe;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.5);
}

/* Tono info */
.tono-info {
    font-size: 11px;
    font-weight: 600;
}

/* Animación de entrada */
.historial-lista {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.historial-lista.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Forzar visible para lista pasada (ya tiene opacity) */
.lista-pasada.visible {
    opacity: 0.75;
}

.lista-pasada.visible:hover {
    opacity: 0.9;
}

.historial-lista-header {
    cursor: pointer;
}


/* ===== HERO REDISEÑADO ===== */
.hero-nuevo {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 50%, #1e293b 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-nuevo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-nuevo::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    position: relative;
    z-index: 2;
    min-height: 320px;
}

/* LADO IZQUIERDO: Info */
.hero-info {
    flex: 1;
    padding: 50px 40px 50px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    color: #00f2fe;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.hero-info h1 {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.hero-info h1 span {
    color: #00f2fe;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 300;
    margin: 0 0 25px;
}

.hero-fecha {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    width: fit-content;
}

.hero-fecha .fecha-icon {
    font-size: 18px;
}

.hero-fecha .fecha-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    display: block;
}

.hero-fecha .fecha-valor {
    font-weight: 600;
    font-size: 15px;
}

/* LADO DERECHO: Anuncios */
.hero-anuncios {
    width: 420px;
    padding: 35px 8% 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-anuncios-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hero-anuncios-titulo {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-anuncios-titulo::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #00f2fe;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Botón lápiz */
.btn-escribir {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-escribir:hover {
    background: rgba(0, 242, 254, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Lista de anuncios en hero */
.hero-anuncios-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}

.hero-anuncios-lista::-webkit-scrollbar {
    width: 3px;
}

.hero-anuncios-lista::-webkit-scrollbar-track {
    background: transparent;
}

.hero-anuncios-lista::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 3px;
}

@keyframes slideDownIn {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.mini-anuncio {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s;
    position: relative;
    animation: slideDownIn 0.5s ease-out forwards;
}

.mini-anuncio:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 242, 254, 0.6);
    transform: scale(1.02);
}

.mini-anuncio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mini-tipo {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 8px;
    border-radius: 6px;
}

.mini-tipo-anuncio {
    background: rgba(25, 118, 210, 0.2);
    color: #64b5f6;
}

.mini-tipo-versiculo {
    background: rgba(230, 81, 0, 0.2);
    color: #ffab91;
}

.mini-tipo-mensaje {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
}

.mini-autor {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.mini-contenido {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
}

.mini-fecha-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.mini-fecha {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.mini-eliminar {
    background: none;
    border: none;
    color: rgba(255, 100, 100, 0.5);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: 0.3s;
}

.mini-eliminar:hover {
    color: #ff6b6b;
    background: rgba(255, 100, 100, 0.1);
}

.sin-anuncios-hero {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 30px 10px;
    font-size: 13px;
    line-height: 1.6;
}

/* Separador vertical */
.hero-separador {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.4), transparent);
    margin: 40px 0;
}

/* ===== MODAL ANUNCIO ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.activo {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-anuncio {
    background: #1e293b;
    border-radius: 20px;
    padding: 35px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-cerrar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.modal-cerrar:hover {
    background: #eee;
    color: #333;
}

.modal-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: #ffffff;
}

.modal-textarea:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.modal-textarea::placeholder {
    color: #bbb;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    align-items: center;
}

.modal-select {
    padding: 11px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    outline: none;
    background: #fafafa;
    cursor: pointer;
    color: #555;
    flex: 1;
}

.modal-select:focus {
    border-color: #d4af37;
}

.modal-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #0a1f44, #1a3a6c);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 31, 68, 0.3);
}

.modal-nota {
    margin-top: 14px;
    font-size: 11px;
    color: #bbb;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-info {
        padding: 40px 6%;
    }

    .hero-info h1 {
        font-size: 26px;
    }

    .hero-separador {
        width: 80%;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
    }

    .hero-anuncios {
        width: 100%;
        padding: 20px 6% 40px;
    }
}