/* ========== VARIABLES CSS DINÁMICAS ========== */
:root {
    --color-primario: #FFD700;
    --color-fondo: #000000;
    --color-texto: #FFFFFF;
    --color-header-bg: rgba(0, 0, 0, 0.95);
    --color-hero-overlay: rgba(0, 0, 0, 0.7);
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --color-footer-bg: #111111;
    --font-family: 'Montserrat', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-hero-title: 2rem;
    --font-size-hero-subtitle: 24px;
}

/* ========== RESET Y BASE ========== */
.latina-network-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.latina-network-wrapper {
    font-family: var(--font-family);
    background: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    min-height: 100vh;
    font-size: var(--font-size-base);
}

.latina-network-wrapper a {
    text-decoration: none;
    color: inherit;
}

.latina-network-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== HEADER ========== */
.home-one-header {
    background: var(--color-header-bg);
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid var(--color-primario);
    transition: top 0.4s ease-in-out;
}

.home-one-header.header-visible {
    top: 0;
}

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

.brand-logo {
    flex: 0 0 auto;
}

.brand-logo img {
    height: 60px !important;
    width: auto !important;
}

.nav-menu-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.nav-menu-center .nav-link {
    color: var(--color-texto);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-menu-center .nav-link:hover {
    color: var(--color-primario);
    background: rgba(255, 215, 0, 0.1);
}

.menu-divider {
    color: var(--color-primario);
    font-weight: bold;
}

.social-links-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links-header .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links-header .social-link:hover {
    background: var(--color-primario);
    transform: translateY(-2px);
    border-color: var(--color-primario);
}

.social-links-header .social-link i {
    font-size: 16px;
    color: var(--color-texto);
}

.social-links-header .social-link:hover i {
    color: #000;
}

.fa-x-twitter:before {
    content: "𝕏" !important;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: bold;
    font-size: 1.15em;
    display: inline-block;
    line-height: 1;
    transform: translateY(1px);
}

/* ========== HERO SECTION ========== */
.home-hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.background-video-wrapper,
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-hero-overlay);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title-text {
    font-size: var(--font-size-hero-title);
    font-weight: 800;
    color: var(--color-texto);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.7), 0 0 15px rgba(255, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.hero-sub-title {
    font-size: var(--font-size-hero-subtitle);
    color: #ff0000;
    text-shadow: 1px 1px 0 #ffffff, 0 0 8px rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-shape {
    width: 160px;
    height: auto;
    opacity: 0.9;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.7));
}

/* ========== ANIMACIONES ========== */
@keyframes dynamicGlitch {
    0% { transform: skew(0deg, 0deg) translate(0, 0); opacity: 1; text-shadow: 2px 2px 8px red; }
    10% { transform: skew(5deg, 2deg) translate(-2px, 1px); text-shadow: -2px -2px 0 #ff0000, 2px 2px 0 #00ff00; }
    20% { transform: skew(-3deg, -1deg) translate(2px, -1px); text-shadow: 2px -2px 0 #ff0000, -2px 2px 0 #0000ff; }
    30% { transform: skew(0deg, 0deg) translate(0, 0); text-shadow: 2px 2px 8px red; }
    100% { transform: skew(0deg, 0deg) translate(0, 0); text-shadow: 2px 2px 8px red; }
}

.animate-dynamic-glitch {
    animation: dynamicGlitch 2s infinite ease-in-out;
}

@keyframes dynamicBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); text-shadow: 0 0 15px white, 0 0 25px red; }
}

.animate-dynamic-bounce {
    animation: dynamicBounce 1.2s infinite ease-in-out;
}

@keyframes dynamicFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg) scale(1.05); }
    50% { transform: translateY(10px) rotate(-5deg) scale(0.98); }
    75% { transform: translateY(-5px) rotate(3deg) scale(1.02); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-dynamic-float {
    animation: dynamicFloat 2.5s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes dynamicPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 15px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.animate-pulse {
    animation: dynamicPulse 1.5s infinite ease-out;
}

.home-hero-section:hover .hero-title-text {
    animation: dynamicGlitch 0.8s infinite;
}

.home-hero-section:hover .hero-sub-title {
    animation: dynamicBounce 0.6s infinite;
}

.home-hero-section:hover .hero-shape {
    animation: dynamicFloat 1.5s infinite;
}

/* ========== WIDGETS SECTION ========== */
.widgets-section {
    padding: 20px 0;
    background: var(--color-fondo);
}

.widgets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.widget-time-weather,
.news-marquee,
.live-programming {
    margin-bottom: 20px;
}

.news-marquee iframe {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ========== FOOTER ========== */
.footer-section.v2 {
    background: var(--color-footer-bg);
    padding: 20px 0 20px;
    border-top: 3px solid var(--color-primario);
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-widgets-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-widget {
    text-align: center;
    width: 100%;
}

.footer-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.copyright-credit-block {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.copyright-text {
    font-size: inherit;
    color: var(--color-texto);
}

.developer-credit a {
    color: #0066cc;
    text-decoration: none;
    font-size: inherit;
    transition: color 0.2s ease;
}

.developer-credit a:hover {
    color: #00aa00;
    text-decoration: underline;
}

.social-icons-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    max-width: 400px;
}

.social-icons-wrapper .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.social-icons-wrapper .social-icon i {
    font-size: 16px;
    color: #ffffff !important;
    transition: color 0.2s ease;
}

.social-icons-wrapper .social-icon:hover {
    background: var(--color-primario);
    transform: translateY(-2px);
    border-color: var(--color-primario);
}

.social-icons-wrapper .social-icon:hover i {
    color: #000000 !important;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
    .hero-title-text { font-size: 2.8rem; }
    .hero-shape { width: 100px; }
    .footer-content-row {
        gap: 15px;
        justify-content: center;
    }
    .social-icons-wrapper { order: -1; margin-bottom: 10px; }
    .social-icons-wrapper .social-icon {
        width: 38px;
        height: 38px;
    }
    .copyright-credit-block { font-size: 13px; }
}

@media (max-width: 768px) {
    .hero-title-text { font-size: 2.5rem !important; margin-bottom: 20px; }
    .hero-sub-title { font-size: 18px; letter-spacing: 2px; margin-bottom: 20px; }
    .hero-shape { width: 80px; margin-top: 15px; opacity: 0.7; }
    .home-one-header { padding: 20px 0; }
    .brand-logo img { height: 80px !important; }
    .nav-menu-center {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }
    .footer-section.v2 { padding: 25px 0 10px; }
    .footer-content-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .copyright-credit-block {
        font-size: 12px;
        white-space: normal;
        line-height: 1.4;
    }
    .social-icons-wrapper { gap: 8px; margin-bottom: 8px; }
    .social-icons-wrapper .social-icon {
        width: 36px;
        height: 36px;
    }
    .social-icons-wrapper .social-icon i { font-size: 14px; }
}

@media (max-width: 600px) {
    .hero-title-text { font-size: 2rem !important; }
    .hero-sub-title { font-size: 16px; letter-spacing: 1px; }
    .hero-shape { width: 70px; opacity: 0.6; }
}

@media (max-width: 480px) {
    .hero-title-text { font-size: 1.8rem !important; letter-spacing: 1px; }
    .hero-sub-title { font-size: 14px; letter-spacing: 1px; }
    .hero-shape { width: 60px; opacity: 0.5; }
    .hero-content-wrapper { padding: 0 15px; }
    .social-links-header .social-link { width: 32px; height: 32px; }
    .brand-logo img { height: 70px !important; }
    .footer-section.v2 { padding: 15px 0 8px; }
    .copyright-credit-block { font-size: 11px; }
    .social-icons-wrapper .social-icon {
        width: 32px;
        height: 32px;
    }
    .social-icons-wrapper .social-icon i { font-size: 13px; }
}

@media (max-width: 360px) {
    .hero-title-text { font-size: 1.6rem !important; }
    .hero-sub-title { font-size: 13px; }
    .hero-shape { width: 50px; opacity: 0.4; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .home-hero-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    .hero-shape { width: 60px; }
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .primary-button, .secondary-button {
            -webkit-appearance: none;
            border-radius: 50px;
        }
    }
}