/* ===== Landing Page Styles ===== */

:root {
    --primary-color: #102040;
    --secondary-color: #e67a21;
    --accent-color: #ffdc31;
    --text-light: #f8f7e4;
    --section-padding: 80px 0;
    --container-max-width: 1300px;
}

html {
    scroll-behavior: smooth;
}

.bck-line {
    position: absolute;
    top: 480px;
    left: 0;
    width: 8px;
    height: 200px;
    z-index: 1;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #0f1f3f 0%, #1a2f5f 100%);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #102040 0%, #0a1530 100%);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--secondary-color);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Coverage Section */
.coverage-map {
    text-align: center;
    margin: 50px 0;
}

.coverage-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coverage-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.emisoras-subsection h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.emisoras-subsection p {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.emisoras-list {
    column-count: 3;
    column-gap: 24px;
    margin-top: 40px;
    padding-bottom: 8px;
}

.state-card {
    border-radius: 26px;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.state-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px rgba(7, 17, 34, 0.55);
}

.state-card-header {
    padding: 15px;
}

.state-card-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f8f0d6;
    text-transform: uppercase;
    margin: 0;
}

.state-board-head {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 118px;
    align-items: stretch;
    background: #c94d2d;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: inset 0 -2px 0 rgba(242, 106, 59, 0.55);
}

.head-plaza,
.head-emisora,
.head-siglas {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.76rem;
    color: #f8f0d6;
    padding: 11px 12px;
}

.head-plaza {
    background: rgba(201, 77, 45, 0.18);
    border-right: 2px solid rgba(242, 106, 59, 0.55);
    padding: 0;
}

.head-plaza span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: block;
    padding: 14px 0;
    font-size: 0.66rem;
}

.state-board-body {
    background: #f7ede0;
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 0 0 2px rgba(242, 102, 59, 0.32);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.state-board-empty {
    text-align: center;
    padding: 32px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(45, 48, 71, 0.6);
}

.plaza-group {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(248, 239, 221, 1) 100%);
}

.plaza-group + .plaza-group {
    border-top: 1px solid rgba(242, 102, 59, 0.22);
}

.plaza-group:first-child .plaza-label {
    border-top-left-radius: 18px;
}

.plaza-group:first-child .plaza-emisoras {
    border-top-right-radius: 20px;
}

.plaza-group:last-child .plaza-label {
    border-bottom-left-radius: 18px;
}

.plaza-group:last-child .plaza-emisoras {
    border-bottom-right-radius: 20px;
}

.plaza-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.06) 100%);
}

.plaza-label::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: var(--plaza-accent, #f26a3b);
    opacity: 0.9;
}

.plaza-label::after {
    content: attr(data-label);
    position: relative;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    padding: 12px 0;
    text-align: center;
}

.plaza-emisoras {
    display: flex;
    flex-direction: column;
    background: rgba(248, 239, 221, 0.97);
}

.plaza-emisora {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #2d3047;
}

.plaza-emisora:nth-child(odd) {
    background: rgba(255, 248, 239, 0.93);
}

.plaza-emisora + .plaza-emisora {
    border-top: 1px solid rgba(242, 102, 59, 0.16);
}

.emisora-nombre {
    text-transform: uppercase;
}

.emisora-siglas {
    text-align: center;
    font-family: "Roboto Mono", monospace;
    font-size: 0.88rem;
    color: #c94d2d;
    font-weight: 700;
}

.plaza-emisora-empty {
    grid-template-columns: 1fr;
    justify-items: center;
    text-transform: none;
    color: rgba(45, 48, 71, 0.6);
    font-size: 0.9rem;
}

.emisoras-empty {
    text-align: center;
    padding: 36px;
    margin: 0;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.58);
    background: rgba(16, 32, 64, 0.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Afiliados */
.afiliados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.afiliado-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 220, 49, 0.2);
    position: relative;
}

.afiliado-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.afiliado-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.afiliado-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: #f8f9fa;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.afiliado-card:hover .afiliado-icon img {
    transform: scale(1.1);
}

.afiliado-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.afiliado-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.afiliado-link {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.afiliado-link:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 220, 49, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    text-align: left;
}

.footer-section:first-child {
    text-align: center;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.contact-info p {
    color: rgba(248, 247, 228, 0.9);
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(255, 220, 49, 0.2);
}

.social-links a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

#copyright {
    color: rgba(248, 247, 228, 0.8);
    font-size: 0.9rem;
    padding: 30px 20px 20px;
    border-top: 1px solid rgba(255, 220, 49, 0.2);
    margin-top: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

/* Scroll Navigation */
.nav-scroll {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(16, 32, 64, 0.95);
    border-radius: 30px;
    padding: 15px 10px;
    backdrop-filter: blur(15px);
    display: none;
    border: 1px solid rgba(255, 220, 49, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-scroll.show {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.nav-scroll ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-scroll li {
    margin: 0;
    position: relative;
}

.nav-scroll a {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(248, 247, 228, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.nav-scroll a:hover,
.nav-scroll a.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 220, 49, 0.5);
}

.nav-scroll a::after {
    content: attr(data-section);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.nav-scroll a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Mobile Navigation Indicator */
.mobile-nav-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 32, 64, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 12px 20px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 220, 49, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-indicator.show {
    display: flex;
    gap: 12px;
    align-items: center;
    opacity: 1;
    visibility: visible;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mobile-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(248, 247, 228, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.mobile-nav-dot:hover {
    background: rgba(255, 220, 49, 0.7);
    transform: scale(1.2);
}

.mobile-nav-dot.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(255, 220, 49, 0.6);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0 60px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 100px 0 60px;
        min-height: auto;
    }

    #hero,
    .hero-slider {
        height: 70vh;
        min-height: 500px;
        padding: 120px 0 80px;
    }

    .slide {
        height: 70vh;
        min-height: 500px;
    }

    .slide-image {
        height: 70vh;
        min-height: 500px;
        object-fit: cover;
        object-position: center;
    }

    .slider-dots {
        bottom: 25px;
        gap: 8px;
    }

    .slider-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        border: 2px solid rgba(255, 255, 255, 0.3);
        flex-shrink: 0;
    }

    .slider-dots .dot.active {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 220, 49, 0.5);
    }

    .services-grid,
    .afiliados-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    footer {
        padding: 40px 0 20px;
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-section {
        text-align: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .mobile-nav-indicator {
        display: flex;
    }

    .nav-scroll {
        display: none !important;
    }

    #header {
        padding: 10px 0;
        min-height: 70px;
        background: rgba(16, 32, 64, 0.95) !important;
        backdrop-filter: blur(10px);
    }

    #logo {
        z-index: 1001 !important;
    }

    #logo img {
        max-height: 50px !important;
        width: auto !important;
        filter: brightness(1.1) contrast(1.1);
    }

    #menuNav {
        background: rgba(16, 32, 64, 0.98) !important;
        backdrop-filter: blur(15px);
    }

    #menuNav a {
        color: var(--text-light) !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(255, 220, 49, 0.1);
        font-size: 1.1rem !important;
    }

    #menuNav a:hover {
        background: rgba(255, 220, 49, 0.1) !important;
        color: var(--secondary-color) !important;
    }

    #copyright {
        font-size: 0.8rem;
        padding: 20px 15px;
        line-height: 1.4;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .nav-scroll a::after {
        display: none;
    }

    #hero,
    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }

    .slide {
        height: 60vh;
        min-height: 450px;
    }

    .slide-image {
        height: 60vh;
        min-height: 450px;
    }

    .slider-dots {
        bottom: 20px;
        gap: 6px;
    }

    .slider-dots .dot {
        width: 8px;
        height: 8px;
        border-width: 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    footer {
        background: rgba(0, 0, 0, 0.8) !important;
        padding: 32px 0 !important;
        border-top: 2px solid var(--primary-color) !important;
    }

    #copyright {
        padding: 16px !important;
        margin-top: 20px !important;
        line-height: 1.4 !important;
        color: rgba(248, 247, 228, 0.9) !important;
    }
}
