:root {
    --bg-main: #0b1120;
    --bg-surface: #162032;
    --bg-surface-hover: #1e293b;
    --border-color: #283548;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #fbbf24;
    --yt-red: #ef4444;
    --sp-green: #10b981;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand strong {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-yt-sub {
    background: var(--yt-red) !important;
    color: #fff !important;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-yt-sub:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* HERO */
.hero {
    background: radial-gradient(circle at top right, #1e1b4b, var(--bg-main) 65%);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.14);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.2;
    max-width: 780px;
    margin: 0 auto 1rem;
}

.hero p {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0b1120;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: border-color 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent-gold);
}

/* CATÁLOGO Y CONTROLES */
.section {
    padding: 3rem 1.25rem;
}

.section-header {
    margin-bottom: 1.75rem;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pill:hover {
    color: var(--text-primary);
    border-color: #475569;
}

.pill.active {
    background: var(--accent-gold);
    color: #0b1120;
    border-color: var(--accent-gold);
}

.search-box input {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    min-width: 250px;
    font-size: 0.92rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* GRID DE CANCIONES */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1.5rem;
}

.song-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.song-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.song-card:hover .card-cover img {
    transform: scale(1.04);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    font-size: 2.5rem;
}

.genre-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: rgba(11, 17, 32, 0.85);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.new-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: var(--accent-gold);
    color: #0b1120;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.btn-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.55);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-cover:hover .btn-play-overlay {
    opacity: 1;
}

.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 1rem;
}

.song-title {
    font-size: 1.08rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-preview {
    background: #334155;
    color: #fff;
    border: none;
    padding: 0.42rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-preview:hover {
    background: var(--accent-gold);
    color: #0b1120;
}

.platform-links {
    display: flex;
    gap: 0.45rem;
}

.btn-platform {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 0.65rem;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.btn-platform:hover {
    opacity: 0.85;
}

.btn-platform.yt {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-platform.sp {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-surface);
    border-radius: 12px;
    color: var(--text-secondary);
}

/* BANNER SERVICIOS (BASE FASE 4) */
.services-banner {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
}

.services-banner h2 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.services-banner p {
    color: var(--text-secondary);
}

/* FOOTER */
.footer {
    padding: 1.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
}

.admin-link:hover {
    color: var(--text-secondary);
}

/* MODAL DE VISTA PREVIA */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 999;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
    padding: 1.1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
}

.badge-modal {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.2rem;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-tabs {
    display: flex;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.7rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.06);
}

.modal-player-wrapper {
    background: #000;
    width: 100%;
}

.modal-player-wrapper iframe {
    display: block;
    width: 100%;
    border: none;
}

.modal-footer {
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #0f172a;
}

@media (max-width: 640px) {
    .search-box, .search-box input {
        width: 100%;
    }
    .btn-play-overlay {
        opacity: 1;
        background: rgba(11, 17, 32, 0.35);
    }
}
/* ==================== FASE 4: SERVICIOS Y CONTACTO ==================== */
.services-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, #0f172a 100%);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.section-header.center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.5);
}

.service-card.featured {
    border-color: rgba(245, 158, 11, 0.65);
    background: linear-gradient(160deg, #1b263b, var(--bg-surface));
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 1.25rem;
    background: var(--accent-gold);
    color: #0b1120;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-size: 1.22rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    font-size: 0.88rem;
    color: #cbd5e1;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-list li::before {
    content: "♪";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.btn-service-select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #0f172a;
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-service-select:hover {
    background: var(--accent-gold);
    color: #0b1120;
}

/* CONTENEDOR DE CONTACTO */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.25rem;
}

@media (max-width: 860px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

.contact-info h3 {
    font-size: 1.45rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
}

.direct-wa-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.wa-status {
    display: block;
    font-size: 0.82rem;
    color: #6ee7b7;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.btn-whatsapp-lg {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #052e16;
    font-weight: 800;
    text-decoration: none;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    font-size: 0.98rem;
    transition: transform 0.2s, filter 0.2s;
}

.btn-whatsapp-lg:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.contact-notes p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* FORMULARIO */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #0b1120;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.94rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-submit-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-submit {
    border: none;
    cursor: pointer;
    font-size: 0.96rem;
    flex: 1;
    min-width: 170px;
}

.btn-wa-secondary {
    background: transparent;
    border: 1px solid #25d366;
    color: #6ee7b7;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-wa-secondary:hover {
    background: #25d366;
    color: #052e16;
}

.form-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-alert.success {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

/* BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 950;
    background: #25d366;
    color: #052e16;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}

@media (max-width: 520px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 0.85rem;
    }
}