/*
Theme Name: FM Fenix Moderno
Theme URI: https://fmfenixdigital.com
Author: Tu Nombre
Description: Tema personalizado para FM Fénix Digital
Version: 1.0
*/

/* PALETA DE COLORES OFICIAL BASADA EN EL LOGO DEL FÉNIX */
:root {
    --bg-body: #0f1115;
    --bg-nav: rgba(22, 25, 32, 0.95);
    --bg-card: #161920;
    --bg-card-hover: #1b1f28;
    --bg-radio: linear-gradient(145deg, #1b2028, #14171d);
    --bg-footer: #12141a;
    --bg-badge-small: #262b36;
    --border-color: #262b36;
    --text-main: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #cbd5e1;
    --accent: #ff6600;
    --accent-hover: #ff8533;
    --accent-red: #e63946;
    --shadow-card: rgba(0, 0, 0, 0.45);
}

/* MODO CLARO */
body.light-mode {
    --bg-body: #f4f6f9;
    --bg-nav: rgba(255, 255, 255, 0.96);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-radio: linear-gradient(145deg, #ffffff, #f1f5f9);
    --bg-footer: #e2e8f0;
    --bg-badge-small: #e2e8f0;
    --border-color: #cbd5e1;
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #475569;
    --accent: #e65100;
    --accent-hover: #ff6600;
    --accent-red: #c52233;
    --shadow-card: rgba(15, 23, 42, 0.12);
}

/* RESET Y GENERALES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CASCADA LENTA AL CARGAR LA PÁGINA */
@keyframes pageCascade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-anim-1 { animation: pageCascade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; }
.page-anim-2 { animation: pageCascade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }
.page-anim-3 { animation: pageCascade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; opacity: 0; }
.page-anim-4 { animation: pageCascade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; opacity: 0; }
.page-anim-5 { animation: pageCascade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards; opacity: 0; }

@keyframes sheenSweep {
    0% { left: -100%; }
    45%, 100% { left: 150%; }
}

@keyframes lineFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes phoenixTextGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 2px rgba(255, 102, 0, 0.2));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5));
    }
}

/* Animación sutil y elegante de pulso para los iconos superiores */
@keyframes iconBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

/* BARRA DE NAVEGACIÓN Y SUB-BARRA */
.navbar {
    background-color: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: transform 0.25s ease;
}

.logo-group:hover {
    transform: scale(1.02);
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    background: linear-gradient(90deg, #ff6600, #ffaa00, #e63946, #ff6600);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: phoenixTextGlow 4.5s ease-in-out infinite;
}

.logo small {
    font-size: 0.78rem;
    background-color: var(--bg-badge-small);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-body);
    font-weight: 700;
    margin-left: 2px;
}

.slogan-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme-btn:hover {
    border-color: var(--accent);
    transform: rotate(20deg) scale(1.08);
}

.btn-live {
    background-color: var(--accent-red);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
    transition: all 0.25s ease;
}

.btn-live::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    animation: sheenSweep 3.5s infinite;
}

.btn-live:hover {
    background-color: #ff4d5a;
    transform: translateY(-2px);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff;
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.35); }
}

/* SUB-BARRA CON BUSCADOR Y REDES UNIFORMES Y FIJAS */
.sub-navbar {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    transition: background-color 0.4s ease;
}

.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 5px 14px;
    border-radius: 20px;
    color: var(--text-muted);
    width: 250px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.9rem;
    width: 100%;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Iconos superiores con tamaño uniforme, color fijo y animación suave */
.soc-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    animation: iconBreath 4s infinite ease-in-out;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soc-icon:hover {
    transform: scale(1.12) !important;
}

.soc-icon.wsp svg {
    width: 36px;
    height: 36px;
}

/* Colores fijos institucionales para cada red */
.soc-icon.wsp { color: #25d366; border-color: rgba(37, 211, 102, 0.4); animation-delay: 0s; }
.soc-icon.ig  { color: #e1306c; border-color: rgba(225, 48, 108, 0.4); animation-delay: 1s; }
.soc-icon.fb  { color: #1877f2; border-color: rgba(24, 119, 242, 0.4); animation-delay: 2s; }
.soc-icon.yt  { color: #ff0000; border-color: rgba(255, 0, 0, 0.4); animation-delay: 3s; }

/* CONTENEDOR PRINCIPAL */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.featured-news {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.featured-news:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 30px var(--shadow-card);
}

.image-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.news-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-news:hover .news-image {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.featured-content {
    padding: 25px;
}

.featured-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-main);
    transition: color 0.25s ease;
}

.featured-news:hover .featured-content h1 {
    color: var(--accent);
}

.featured-content p {
    color: var(--text-body);
    font-size: 1.08rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more .arrow {
    transition: transform 0.25s ease;
}

.read-more:hover .arrow {
    transform: translateX(5px);
}

/* RADIO SIDEBAR */
.radio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-card {
    background: var(--bg-radio);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 24px;
}

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

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.equalizer span {
    width: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    animation: eqBounce 1s infinite ease-in-out;
}

.equalizer span:nth-child(1) { height: 6px; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.equalizer span:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.equalizer span:nth-child(4) { height: 12px; animation-delay: 0.1s; }

@keyframes eqBounce {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

.live-tag {
    background-color: rgba(230, 57, 70, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(230, 57, 70, 0.35);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.freq {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.15rem;
}

.radio-card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.radio-desc {
    color: var(--text-body);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.audio-control {
    width: 100%;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 8px;
}

/* BOTONES PROFESIONALES (ESTILO PLANO, SERIO Y SIN NEÓN) */
.studio-actions-professional {
    display: flex;
    gap: 10px;
}

.pro-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-body);
    transition: all 0.25s ease;
}

.wsp-pro:hover {
    background-color: #25d366;
    color: #ffffff;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.ig-pro:hover {
    background-color: #e1306c;
    color: #ffffff;
    border-color: #e1306c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.25);
}

.ad-box {
    margin-top: 20px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    color: var(--text-muted);
}

.ad-box span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

/* SECCIONES Y NOTICIAS */
.section-block {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 1.55rem;
    color: var(--text-main);
    white-space: nowrap;
}

.animated-line {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-red), var(--border-color), var(--accent));
    background-size: 200% 200%;
    animation: lineFlow 6s ease infinite;
    width: 100%;
}

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

.news-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 14px 28px var(--shadow-card);
}

.card-img-wrapper {
    height: 185px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .card-img {
    transform: scale(1.08);
}

.card-body {
    padding: 20px;
}

.category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-main);
    transition: color 0.25s ease;
}

.news-card:hover .card-body h3 {
    color: var(--accent);
}

.card-body p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 15px;
}

.date {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.more-section-btn {
    text-align: right;
    margin-top: 15px;
}

.btn-more {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn-more:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* FOOTER */
.footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-col h3 span {
    color: var(--accent);
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 15px;
}

.footer-col ul a {
    color: var(--text-body);
    font-size: 1rem;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col ul a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid, .news-grid, .footer-container {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .sub-nav-container {
        flex-direction: column;
        gap: 10px;
    }
    .search-box {
        width: 100%;
    }
}
/* Categorías del menú superior con degradado y diseño en bloques modernos */
.nav-links {
    gap: 12px; /* Espacio entre cada categoría */
    align-items: center;
}

.nav-links a {
    background: linear-gradient(135deg, #ff6600, #ff8533);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px; /* Forma de pastilla / bloque */
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Ocultamos la línea inferior anterior porque ahora son bloques flotantes */
.nav-links a::after {
    display: none;
}

/* Efecto al pasar el mouse (se elevan un poquito y brillan más) */
.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.45);
    background: linear-gradient(135deg, #ff7715, #ff944d);
}