/* =========================================================
   ÁUREA FM — STYLE.CSS
   Versión: 3.2 (Legibilidad: grises + subida general)
   ========================================================= */

:root {
    --black: #070707;
    --black-2: #0c0c0c;
    --black-3: #111111;
    --black-4: #171717;

    --white: #ffffff;
    --white-soft: #c6c6c6;

    --grey: #949494;        /* antes #777777 */
    --grey-dark: #5a5a5a;   /* antes #3d3d3d */

    --accent: #dfff00;
    --accent-dark: #a8bf00;

    --border: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.15);

    --accent-transparent: rgba(223, 255, 0, 0.10);

    --container: 1180px;
    --radius: 18px;
    --transition: 0.25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--black); }


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 78px;
    background: rgba(7, 7, 7, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    transition: color var(--transition);
}

.logo:hover { color: var(--accent); }


/* =========================================================
   NAVEGACIÓN (ESCRITORIO)
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--grey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color var(--transition);
}

.main-nav a:hover { color: var(--white); }


/* =========================================================
   HEADER PLAY
   ========================================================= */

.header-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 120px;
    height: 38px;
    padding: 0 16px;
    background: var(--accent);
    color: var(--black);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: transform var(--transition), background var(--transition);
}

.header-play:hover { background: var(--white); transform: translateY(-2px); }
.header-play:active { transform: translateY(0); }
.header-play span:first-child { font-size: 12px; }


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 78px;
    background:
        radial-gradient(circle at 75% 35%, rgba(223, 255, 0, 0.09), transparent 28%),
        radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.04), transparent 25%),
        var(--black);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, black, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.hero-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(70px, 13vw, 180px);
    line-height: 0.85;
    font-weight: 900;
    letter-spacing: -8px;
    margin-left: -7px;
    margin-bottom: 35px;
}

.hero-description {
    max-width: 520px;
    color: var(--white-soft);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
}


/* =========================================================
   MAIN PLAY
   ========================================================= */

.main-play {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 25px;
    background: var(--accent);
    color: var(--black);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    transition: transform var(--transition), background var(--transition);
}

.main-play:hover { background: var(--white); transform: translateY(-3px); }
.main-play:active { transform: translateY(0); }
.main-play span:first-child { font-size: 14px; }


/* =========================================================
   SECCIONES
   ========================================================= */

.section { padding: 110px 0; }

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 45px;
}

.section-eyebrow {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: opacity var(--transition);
}

.section-more:hover { opacity: 0.7; }


/* =========================================================
   RADIO SECTION
   ========================================================= */

.radio-section { background: var(--black); }


/* =========================================================
   IFRAME — REPRODUCTOR
   ========================================================= */

.azuracast-embed {
    position: relative;
    width: 100%;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 12px;
}

.azuracast-embed iframe {
    display: block;
    width: 100%;
    min-height: 180px;
    border: 0;
    border-radius: 12px;
    background: transparent;
}


/* =========================================================
   IFRAME — PROGRAMACIÓN
   ========================================================= */

.schedule-embed {
    position: relative;
    width: 100%;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 12px;
}

.schedule-embed iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: height 0.3s ease;
}


/* =========================================================
   A CONTINUACIÓN (NEXT TRACK)
   ========================================================= */

.next-track-section {
    margin-top: 16px;
    padding: 25px;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.next-track-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.next-track-label {
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.next-track-subtitle {
    color: var(--grey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.next-track {
    display: flex;
    align-items: center;
    gap: 15px;
}

.next-track img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--black-3);
}

.next-track-info { min-width: 0; }

.next-artist {
    color: var(--grey);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-title {
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   HISTORIAL
   ========================================================= */

.history-section {
    margin-top: 16px;
    padding: 25px;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.history-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.history-label {
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.history-subtitle {
    color: var(--grey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.history-header a.history-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition);
}

.history-header a.history-link:hover { opacity: 0.7; }

.song-history { display: flex; flex-direction: column; }

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 30px 48px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 70px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.history-item:last-child { border-bottom: none; }

.history-item-recent::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--accent);
}

.history-index {
    color: var(--grey-dark);
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.history-cover {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 7px;
    background: var(--black-3);
}

.history-info { min-width: 0; }

.history-artist {
    color: var(--grey);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-title {
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-empty,
.history-loading {
    padding: 20px 0;
    color: var(--grey);
    font-size: 14px;
}


/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.radio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.radio-stat {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    border-right: 1px solid var(--border);
}

.radio-stat:last-child { border-right: none; }

.radio-stat-label {
    color: var(--grey);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.radio-stat-value {
    color: var(--white);
    font-size: 17px;
    font-weight: 900;
}

#radioStatus { color: var(--accent); }


/* =========================================================
   SOBRE ÁUREA
   ========================================================= */

.about-section {
    background: var(--black-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 80px;
}

.about-main { max-width: 700px; }

.about-large {
    color: var(--white);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 25px;
}

.about-main > p:not(.about-large) {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
}

.about-side { border-top: 1px solid var(--border); }

.about-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.about-line span {
    color: var(--grey);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.about-line strong {
    color: var(--white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: right;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { padding: 45px 0; background: var(--black); }

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-logo {
    color: var(--white);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.footer-slogan {
    color: var(--grey);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.footer-copy {
    color: var(--grey);
    font-size: 12px;
    font-weight: 700;
}

.footer-copy a {
    color: var(--grey);
    transition: color var(--transition);
}

.footer-copy a:hover { color: var(--accent); }


/* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .main-nav { gap: 18px; }
    .main-nav a { font-size: 11px; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    /* HEADER */
    .site-header { height: 65px; }
    .header-actions { gap: 12px; }

    .header-play {
        min-width: auto;
        height: 34px;
        padding: 0 13px;
        font-size: 12px;
    }

    /* HERO */
    .hero { min-height: 600px; padding-top: 65px; }
    .hero-content { padding: 80px 0; }

    .hero h1 {
        font-size: clamp(58px, 18vw, 100px);
        letter-spacing: -5px;
        margin-left: -4px;
    }
    .hero-description { font-size: 16px; }
    .hero-eyebrow { font-size: 13px; letter-spacing: 1.5px; }

    .main-play { font-size: 14px; }

    /* SECCIONES */
    .section { padding: 75px 0; }
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: 38px; }

    .section-eyebrow { font-size: 13px; letter-spacing: 1.2px; }
    .section-more { font-size: 14px; }

    /* IFRAME REPRODUCTOR */
    .azuracast-embed iframe { min-height: 220px; }

    /* IFRAME PROGRAMACIÓN */
    .schedule-embed iframe { min-height: 500px; }

    /* NEXT TRACK */
    .next-track-section { padding: 20px; }

    .next-track-label { font-size: 13px; letter-spacing: 1.2px; }
    .next-track-subtitle { font-size: 13px; letter-spacing: 1px; }
    .next-artist { font-size: 14px; }
    .next-title { font-size: 16px; }

    /* HISTORIAL */
    .history-section { padding: 20px; }

    .history-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
    .history-label { font-size: 13px; letter-spacing: 1.2px; }
    .history-subtitle { font-size: 13px; }
    .history-header a.history-link { font-size: 14px; }

    .history-item {
        grid-template-columns: 25px 44px 1fr;
        gap: 11px;
    }
    .history-cover { width: 44px; height: 44px; }
    .history-index { font-size: 12px; }
    .history-artist { font-size: 14px; }
    .history-title { font-size: 16px; }
    .history-item-recent::before { left: -20px; }
    .history-empty,
    .history-loading { font-size: 14px; }

    /* ESTADÍSTICAS */
    .radio-stats { grid-template-columns: 1fr; }
    .radio-stat {
        min-height: 80px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .radio-stat:last-child { border-bottom: none; }
    .radio-stat-label { font-size: 13px; letter-spacing: 1.2px; }

    /* SOBRE ÁUREA */
    .about-large { font-size: 24px; }
    .about-line span { font-size: 13px; letter-spacing: 1.2px; }
    .about-line strong { font-size: 13px; }

    /* FOOTER */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-slogan { font-size: 13px; }
    .footer-copy { font-size: 13px; }
}


/* =========================================================
   MÓVIL MUY PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .logo { font-size: 19px; }

    .header-play span:last-child { display: none; }

    .header-play {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .hero h1 {
        font-size: 58px;
        letter-spacing: -4px;
    }

    .section-heading h2 { font-size: 32px; }

    .next-track-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}