/*
Theme Name: Krabel Music Records Custom
Author: Krabel Team
Description: Web oficial del sello - Minimalista y Dark.
Version: 1.1
*/

/* ============================================================
   RESET & GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: #000;
    color: #fff;
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ============================================================
   LANG LOGIC — centralizado (no duplicar en templates)
   ============================================================ */
.en-content { display: none !important; }

body.lang-en-active .es-content { display: none !important; }
body.lang-en-active .en-content { display: block !important; }

/* Casos especiales inline-block */
body.lang-en-active .btn-listen.en-content,
body.lang-en-active .btn-back.en-content,
body.lang-en-active .cta-button .en-content { display: inline-block !important; }

/* ============================================================
   NAV
   ============================================================ */
nav.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.main-nav.scrolled {
    padding: 18px 80px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #111;
}

.nav-logo a { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.nav-logo img { height: 42px; width: auto; filter: invert(1); transition: 0.3s; }
.logo-text { color: #fff; text-transform: uppercase; letter-spacing: 5px; font-size: 0.65rem; font-weight: 300; }

.nav-links { display: flex; align-items: center; }

.nav-links a {
    color: #777;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    margin-left: 35px;
    transition: 0.4s;
    position: relative;
    font-weight: 300;
}

.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: #fff; transition: 0.4s; }
.nav-links a:hover::after { width: 100%; }

.nav-cta { border: 1px solid #222; padding: 8px 18px; border-radius: 2px; margin-left: 35px; }
.nav-cta:hover { border-color: #fff; background: #fff; color: #000 !important; }

.lang-switch { display: inline-flex; align-items: center; margin-left: 40px; font-size: 0.6rem; letter-spacing: 2px; color: #444; }
.lang-btn { cursor: pointer; transition: 0.3s; padding: 5px; }
.lang-btn.active { color: #fff; }
.lang-btn:hover:not(.active) { color: #888; }
.lang-separator { margin: 0 5px; opacity: 0.1; }

@media (max-width: 1024px) {
    nav.main-nav, nav.main-nav.scrolled { padding: 20px 40px; }
}

@media (max-width: 768px) {
    nav.main-nav { padding: 15px 20px; }
    .logo-text, .lang-separator { display: none; }
    .nav-links a { margin-left: 15px; font-size: 0.6rem; letter-spacing: 1.5px; }
    .nav-cta { padding: 5px 10px; margin-left: 10px; }
    .lang-switch { margin-left: 15px; flex-direction: column; gap: 5px; }
}

/* ============================================================
   HOME — HERO & SECTIONS
   ============================================================ */
.main-content-fade { animation: fadeInPage 1.5s ease; min-height: 100vh; }
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

.home-hero { text-align: center; padding: 180px 20px 100px; }
.home-hero h1 { letter-spacing: 18px; text-transform: uppercase; font-weight: 200; font-size: 3rem; color: #fff; margin: 0; }
.home-hero p { color: #555; letter-spacing: 6px; text-transform: uppercase; font-size: 0.7rem; margin-top: 30px; }

.home-section { padding: 100px 80px; border-top: 1px solid #161616; position: relative; }
.section-label { margin-bottom: 60px; color: #fff; text-transform: uppercase; letter-spacing: 6px; font-size: 0.75rem; font-weight: 300; }
.section-label span { color: #333; margin-right: 25px; font-family: serif; font-style: italic; font-size: 0.9rem; }

/* RELEASES GRID */
.releases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; }

.release-item, .artist-card {
    position: relative;
    z-index: 10;
}

.full-card-link {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: block !important;
    cursor: pointer !important;
}

.release-cover-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #0a0a0a; border-radius: 2px; }
.release-cover-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s ease; }
.release-hover-info { position: absolute; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.5s; pointer-events: none; }
.btn-listen { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 4px; color: #fff; }

.release-item:hover .release-hover-info { opacity: 1; }
.release-item:hover img { transform: scale(1.08); }
.release-title { color: #fff; font-size: 0.85rem; margin-top: 25px; text-transform: uppercase; letter-spacing: 3px; font-weight: 300; }

/* ARTISTS GRID */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; }
.artist-card { overflow: hidden; aspect-ratio: 1/1; background: #050505; position: relative; }
.artist-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 1.5s ease; }
.artist-card:hover img { filter: grayscale(0%); transform: scale(1.03); }
.artist-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,0.9)); display: flex; align-items: flex-end; padding: 50px; }
.artist-name { color: #fff; text-transform: uppercase; letter-spacing: 8px; font-size: 1.2rem; font-weight: 200; }

@media (max-width: 1024px) { .home-section { padding: 80px 40px; } }
@media (max-width: 768px) {
    .home-section { padding: 60px 20px; }
    .releases-grid, .artists-grid { grid-template-columns: 1fr; }
    .home-hero h1 { font-size: 1.8rem; letter-spacing: 8px; }
}

/* ============================================================
   RELEASE / ARTIST SINGLE PAGE
   ============================================================ */
.release-experience {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    /* Removed background-attachment: fixed — performance + iOS fix */
    display: flex; align-items: center; justify-content: center;
    padding: 140px 20px 80px;
}

.experience-container { max-width: 850px; width: 100%; text-align: center; }

.label-curaduría {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    display: block;
}

.release-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 15px;
    font-weight: 200;
    color: #fff;
    margin-bottom: 40px;
}

.player-wrapper {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(25px);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    margin: 0 auto 50px;
    max-width: 550px;
    width: 100%;
}

.bio-content-wrapper {
    color: #efefef;
    line-height: 1.8;
    text-align: justify;
    font-size: 1rem;
    max-width: 750px;
    margin: 0 auto 60px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-back {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    transition: 0.4s;
}
.btn-back:hover { border-color: #fff; opacity: 0.7; }

/* Cover art */
.release-cover {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.release-cover img {
    width: min(550px, 85vw);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.no-player-box p { color: #444; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; }

@media (max-width: 768px) {
    .release-main-title { letter-spacing: 8px; }
    .player-wrapper { padding: 15px; }
    .bio-content-wrapper { text-align: center; font-size: 0.9rem; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page { padding: 180px 80px 100px; background: #000; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }

.services-header { text-align: center; margin-bottom: 120px; }
.services-header h1 { font-size: 3rem; letter-spacing: 15px; text-transform: uppercase; font-weight: 200; margin: 0; }
.services-header p { color: #555; letter-spacing: 5px; text-transform: uppercase; font-size: 0.75rem; margin-top: 30px; font-weight: 300; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.service-card {
    background: #050505;
    padding: 60px 40px;
    border: 1px solid #111;
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover { border-color: #333; background: #080808; transform: translateY(-5px); }

.service-icon {
    font-size: 0.65rem;
    color: #444;
    letter-spacing: 3px;
    border-bottom: 1px solid #222;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    width: fit-content;
}

.service-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 5px; margin-bottom: 25px; font-weight: 300; color: #fff; }
.service-card p { color: #777; line-height: 2; font-size: 0.85rem; font-weight: 300; letter-spacing: 1px; }

.cta-section { text-align: center; margin-top: 150px; border-top: 1px solid #111; padding-top: 100px; }
.cta-section p { color: #555; text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem; margin-bottom: 40px; }

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.7rem;
    transition: 0.4s;
}
.cta-button:hover { background: #fff; color: #000; border-color: #fff; }

@media (max-width: 1024px) {
    .services-page { padding: 150px 40px 80px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-page { padding: 120px 20px 60px; }
    .services-header h1 { font-size: 2rem; letter-spacing: 8px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 40px 30px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.legal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.legal-column {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.legal-separator {
    padding: 0 15px;
    color: #333;
    font-size: 0.65rem;
    opacity: 0.5;
}

.legal-text, .legal-column span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    white-space: nowrap;
    color: #888;
}

@media (min-width: 769px) {
    .legal-column span {
        background: linear-gradient(to right, #111 20%, #fff 50%, #111 80%);
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 8s linear infinite;
    }
}

@keyframes shine { to { background-position: 200% center; } }

.site-footer { background: #000; padding: 100px 80px 60px; border-top: 1px solid #111; text-align: center; }
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.footer-logo { height: 35px; width: auto; filter: invert(1); opacity: 0.2; margin-bottom: 20px; }
.distro-credit { font-size: 0.6rem; letter-spacing: 4px; color: #333; text-transform: uppercase; }
.footer-social { display: flex; gap: 40px; justify-content: center; }
.footer-social a { color: #555; text-decoration: none; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; transition: 0.4s; }
.footer-social a:hover { color: #fff; }

/* PRIVACY MODAL */
.privacy-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000; backdrop-filter: blur(15px); padding: 60px; overflow-y: auto; }
.privacy-content { max-width: 700px; margin: 0 auto; padding-top: 40px; }
.privacy-header { text-align: right; margin-bottom: 20px; }
.close-btn { cursor: pointer; font-size: 0.7rem; letter-spacing: 3px; color: #555; text-transform: uppercase; transition: 0.3s; }
.close-btn:hover { color: #fff; }
.privacy-body h2 { text-transform: uppercase; letter-spacing: 8px; font-weight: 200; font-size: 1.2rem; margin-bottom: 40px; }
.privacy-text p { color: #888; line-height: 1.9; font-size: 0.85rem; margin-bottom: 20px; font-weight: 300; }
.privacy-text strong { color: #fff; }

@media (max-width: 768px) {
    .site-footer { padding: 60px 20px 40px; }
    .legal-wrapper { flex-direction: column; gap: 10px; }
    .legal-separator { display: none; }
    .privacy-modal { padding: 20px; }
}

/* ============================================================
   404
   ============================================================ */
.not-found-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.not-found-code { font-size: clamp(6rem, 20vw, 12rem); font-weight: 200; letter-spacing: 20px; color: #111; line-height: 1; }
.not-found-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 8px; color: #555; margin: 20px 0 50px; }
.not-found-link { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 5px; border-bottom: 1px solid #333; padding-bottom: 5px; transition: 0.4s; }
.not-found-link:hover { border-color: #fff; }
