/* ============================================================
   A TODA COSTA (ATC PINAMAR) - ESTILOS PERSONALIZADOS
   Framework Multimedios 2027
   Tema Dark Amigable + Visualizador Audio Winamp + Tipografía Editorial
   ============================================================ */

:root {
    --atc-red: #dc3545;
    --atc-red-dark: #b02a37;
    --atc-red-light: #ff4d5e;
    
    /* Dark Theme Amigable (estilo moderno editorial / Spotify / Dashboard) */
    --atc-bg-dark: #0a0d14;
    --atc-bg-surface: #131722;
    --atc-bg-surface-elevated: #1a2030;
    --atc-border-dark: #222b3e;
    --atc-border-subtle: #1c2333;
    --atc-text-main: #f1f5f9;
    --atc-text-muted: #94a3b8;
    --atc-text-bright: #ffffff;
}

/* 1. Reset y Fondo General Dark Amigable */
body {
    background-color: var(--atc-bg-dark) !important;
    color: var(--atc-text-main) !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 2. Capa de Fondo del Visualizador de Audio (Estilo Winamp) */
#winampBgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    transition: opacity 0.6s ease;
}

body.radio-playing #winampBgCanvas {
    opacity: 0.45;
}

/* Asegurar que el contenido del portal esté por encima del canvas */
.marquesina-bar,
.atc-top-bar,
.atc-header,
.contenido,
footer {
    position: relative;
    z-index: 2;
}

/* 3. Tarjetas y Paneles con Superficie Dark Amigable */
.noticia_simple_articulo,
.noticia_portada_articulo,
.atc-sidebar-card,
.atc-tira-wrap,
.articulo-completo,
.weather-widget,
.p-3.bg-light {
    background-color: var(--atc-bg-surface) !important;
    border: 1px solid var(--atc-border-dark) !important;
    color: var(--atc-text-main) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.noticia_simple_titulo,
.noticia_portada_titulo,
.articulo-titulo,
.atc-slide-title {
    color: #ffffff !important;
}

.noticia_simple_copete,
.articulo-copete,
.atc-sidebar-card p,
.text-muted {
    color: var(--atc-text-muted) !important;
}

/* 4. Barra de Menú Arriba del Header (SIEMPRE VISIBLE) */
.atc-top-bar {
    background: #0f131c;
    border-bottom: 2px solid var(--atc-border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.atc-top-bar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

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

.atc-top-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.atc-top-links li a {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.atc-top-links li a:hover,
.atc-top-links li a.active {
    color: #ffffff;
    background-color: var(--atc-red);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

.atc-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atc-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.atc-social-btn.facebook { background-color: #1877f2; }
.atc-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.atc-social-btn.whatsapp { background-color: #25d366; }

.atc-social-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    filter: brightness(1.15);
}

/* 5. Header Principal de ATC Pinamar */
.atc-header {
    background-color: #0d111a;
    border-bottom: 2px solid var(--atc-red);
    position: relative;
    padding: 16px 0;
}

.atc-header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Identidad con Logo + Título Grande y Legible A TODA COSTA */
.atc-header-brand-wrap {
    display: flex;
    align-items: center;
}

.atc-header-brand-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #ffffff;
}

.atc-header-brand-icon {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.atc-header-brand-link:hover .atc-header-brand-icon {
    transform: scale(1.04);
}

.atc-header-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.atc-brand-title-large {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 38px;
    letter-spacing: 1.5px;
    line-height: 1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8), 0 0 25px rgba(220, 53, 69, 0.45);
    text-transform: uppercase;
}

.atc-brand-subtitle-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Badges de ATC (La Mole, Coast 98.9, Rubén Oliva) */
.atc-badges-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atc-badge-card {
    display: flex;
    align-items: center;
    background: #171c28;
    border: 1px solid var(--atc-border-dark);
    border-radius: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    height: 54px;
}

.atc-badge-card:hover {
    background: #202738;
    border-color: var(--atc-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.atc-badge-card img {
    height: 38px;
    width: auto;
    object-fit: contain;
    margin-left: 8px;
}

.atc-badge-card .badge-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.atc-badge-card .badge-subtitle {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

/* Widget de Radio con Mini-Winamp Equalizer */
.atc-radio-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #181d2a, #0f131c);
    border: 1px solid rgba(220, 53, 69, 0.6);
    border-radius: 30px;
    padding: 6px 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.atc-radio-info {
    display: flex;
    flex-direction: column;
}

.atc-radio-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.atc-radio-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #ef4444;
    font-weight: 700;
}

.atc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: atcPulse 1.5s infinite;
}

@keyframes atcPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Mini Ecualizador Winamp en el Widget */
.atc-mini-winamp {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    margin-left: 2px;
}

.atc-mini-bar {
    width: 3px;
    height: 4px;
    background: #22c55e;
    border-radius: 1px;
    transition: height 0.15s ease;
}

body.radio-playing .atc-mini-bar:nth-child(1) { animation: winampMini 0.4s infinite alternate; }
body.radio-playing .atc-mini-bar:nth-child(2) { animation: winampMini 0.6s infinite alternate 0.1s; }
body.radio-playing .atc-mini-bar:nth-child(3) { animation: winampMini 0.5s infinite alternate 0.2s; }
body.radio-playing .atc-mini-bar:nth-child(4) { animation: winampMini 0.7s infinite alternate 0.15s; }

@keyframes winampMini {
    0% { height: 3px; background: #22c55e; }
    60% { height: 11px; background: #eab308; }
    100% { height: 16px; background: #ef4444; }
}

.atc-radio-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--atc-red);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.5);
}

.atc-radio-btn:hover {
    background-color: var(--atc-red-light);
    transform: scale(1.1);
}

/* 6. Hero Multimedia (Video HLS + Slider) */
.atc-multimedia-hero {
    background: var(--atc-bg-surface);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0 25px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--atc-border-dark);
}

.atc-hero-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    min-height: 380px;
}

@media (max-width: 1024px) {
    .atc-hero-grid {
        grid-template-columns: 1fr;
    }
}

.atc-tv-box {
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid var(--atc-border-dark);
    height: 100%;
}

.atc-tv-header {
    background: #11151f;
    min-height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--atc-border-dark);
    flex-shrink: 0;
}

.atc-tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--atc-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.atc-tv-sub {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.atc-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atc-video-container video {
    width: 100%;
    height: 100%;
    max-height: 330px;
    object-fit: cover;
    display: block;
}

/* 7. Sección Tira de Auspiciantes */
.atc-tira-wrap {
    margin: 15px 0 25px 0;
    background: var(--atc-bg-surface);
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid var(--atc-border-dark);
}

.atc-tira-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--atc-red);
    letter-spacing: 0.5px;
}

/* 8. Encabezados de Sección */
.atc-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--atc-red);
    padding-bottom: 8px;
    margin: 25px 0 15px 0;
}

.atc-section-heading h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.atc-section-heading a {
    color: var(--atc-red-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.atc-section-heading a:hover {
    text-decoration: underline;
    color: #fff;
}

/* 9. Sidebar Cards */
.atc-sidebar-card {
    background: var(--atc-bg-surface);
    border: 1px solid var(--atc-border-dark);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

.atc-sidebar-card h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--atc-red);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 10. Footer Dark */
.atc-footer {
    background-color: #080a0f;
    color: #94a3b8;
    border-top: 4px solid var(--atc-red);
    margin-top: 50px;
    padding: 40px 0 20px 0;
    font-size: 13px;
}

.atc-footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .atc-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.atc-footer h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    border-left: 3px solid var(--atc-red);
    padding-left: 8px;
}

.atc-footer a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.atc-footer a:hover {
    color: #ffffff;
}

.atc-footer-bottom {
    max-width: 1240px;
    margin: 30px auto 0 auto;
    padding: 20px 15px 0 15px;
    border-top: 1px solid var(--atc-border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .atc-brand-title-large {
        font-size: 26px;
    }
    .atc-header-brand-icon {
        height: 52px;
    }
}


/* Adaptación de Marquesina de Servicios a Tema Dark Amigable */
.marquesina-servicios {
    background-color: #10141e !important;
    color: #f1f5f9 !important;
    border-top: 1px solid #1c2333 !important;
    border-bottom: 1px solid #1c2333 !important;
}

.marquesina-servicios .badge-servicios {
    background-color: #1a2130 !important;
    color: #ffffff !important;
    border-right: 1px solid #283348 !important;
}

.marquesina-servicios .marq-val-highlight {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

.marquesina-servicios .marq-tag-blue {
    background-color: #1e40af !important;
    color: #ffffff !important;
}

.marquesina-servicios .marq-tag-oficial {
    background-color: #065f46 !important;
    color: #ffffff !important;
}

.marquesina-servicios .marq-tag-clima {
    background-color: #b45309 !important;
    color: #ffffff !important;
}

.marquesina-servicios .marq-sep {
    color: #475569 !important;
}


/* ============================================================
   NOTICIA PRINCIPAL: 100% DEL ANCHO DE LA SECCIÓN
   ============================================================ */
section[aria-label="Noticia Principal"],
section[aria-label="Noticia Principal"] .noticia_portada,
section[aria-label="Noticia Principal"] .noticia_portada_articulo,
.noticia_portada,
.noticia_portada_articulo,
.noticia_portada_articulo_plano {
    width: 100% !important;
    max-width: 100% !important;
}

.noticia_portada_articulo {
    height: 560px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
}

.noticia_portada_titulo {
    font-size: 34px !important;
    line-height: 1.22 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    margin-bottom: 14px !important;
}

.noticia_portada_copete {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    max-width: 95% !important;
}

.noticia_portada_volanta {
    padding-left: 28px !important;
    padding-right: 28px !important;
}


/* ============================================================
   NUEVA BARRA DE SERVICIOS, MERCADOS Y RADIO COAST (DISEÑO EXCLUSIVO)
   ============================================================ */
.atc-services-bar {
    background: #0d111a;
    border-bottom: 1px solid #1c2436;
    padding: 10px 0;
    position: relative;
    z-index: 90;
}

.atc-services-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-pill-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141926;
    border: 1px solid #232c40;
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.2s ease;
    min-height: 44px;
}

.service-pill-card:hover {
    background: #1a2133;
    border-color: #3b82f6;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.service-pill-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-pill-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
}

.service-pill-main {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

/* Píldora Especial Radio Coast */
.service-pill-card.coast-highlight {
    background: linear-gradient(135deg, #1e2638, #161d2d);
    border: 1px solid rgba(220, 53, 69, 0.7);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

.service-pill-card.coast-highlight:hover {
    border-color: #ef4444;
    background: linear-gradient(135deg, #252f45, #1c2438);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.coast-mini-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.service-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: atcPulse 1.5s infinite;
}

.service-icon-link {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 2px;
}

/* Badges Financieros */
.finance-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.finance-badge.blue { background-color: #2563eb; }
.finance-badge.oficial { background-color: #059669; }
.finance-badge.mep { background-color: #7c3aed; }

/* ============================================================
   LIENZO BLANCO PARA EL TEXTO Y LECTURA DE LA NOTA
   ============================================================ */
.articulo-completo,
.articulo_articulo,
.articulo_articulo_plano,
main.columna_900 .articulo-completo,
main.articulo-movil .articulo-completo {
    background-color: #ffffff !important;
    color: #1a202c !important;
    border-radius: 12px !important;
    padding: 35px 40px !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45) !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 30px !important;
}

@media (max-width: 768px) {
    .articulo-completo,
    main.articulo-movil .articulo-completo {
        padding: 20px 16px !important;
        border-radius: 8px !important;
    }
}

.articulo-completo .articulo_titulo,
.articulo-completo h1 {
    color: #0f172a !important;
    font-weight: 900 !important;
    font-size: 36px !important;
    line-height: 1.25 !important;
    margin-bottom: 15px !important;
    font-family: 'Montserrat', 'Roboto', sans-serif !important;
}

.articulo-completo .articulo_volanta {
    color: #dc2626 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

.articulo-completo .articulo_copete,
.articulo-completo h2 {
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 19px !important;
    line-height: 1.65 !important;
    margin-bottom: 25px !important;
}

.articulo-completo .articulo_fecha time {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.articulo-completo .articulo_nota,
.articulo-completo .articulo_nota p,
.articulo-completo p {
    color: #1e293b !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
    margin-bottom: 20px !important;
}

.articulo-completo a {
    color: #dc2626 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.articulo-completo a:hover {
    color: #b91c1c !important;
}


/* ============================================================
   REFINAMIENTOS: ICONOS, VELOCIDAD MARQUESINA, BLANCO LOGO Y CONTACTO
   ============================================================ */

/* 1. Título "A TODA COSTA" al lado de la antena roja: SIEMPRE BLANCO PURO */
.atc-brand-title-large,
.atc-header-brand-link,
.atc-header-brand-link:hover,
.atc-header-brand-link h1,
.atc-header-title-box h1,
.atc-top-bar a span,
.atc-header .atc-brand-title-large {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
}

/* 2. Marquesina de último momento: velocidad lenta y lectura cómoda */
.marquesina-superior .marquesina-track,
.marquesina-track {
    animation-duration: 160s !important;
}

.marquesina-superior .marquesina-track:hover {
    animation-play-state: paused !important;
}

/* 3. Botones e Iconos de Redes Sociales: Más grandes y proporcionados en footer */
.atc-social-btn,
.atc-footer a.atc-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.atc-social-btn i,
.atc-footer a.atc-social-btn i {
    font-size: 17px !important;
    line-height: 1 !important;
}

.atc-footer a.atc-social-btn {
    margin-bottom: 0 !important;
}

.atc-social-btn.facebook { background-color: #1877f2 !important; }
.atc-social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.atc-social-btn.whatsapp { background-color: #25d366 !important; }

.atc-social-btn:hover,
.atc-footer a.atc-social-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* 4. Estilos de la Sección y Formulario Real de Contacto */
.atc-contact-container {
    background: #0f131d;
    border: 1px solid #232c40;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    color: #f1f5f9;
}

.atc-contact-card {
    background: #161b29;
    border: 1px solid #283348;
    border-radius: 10px;
    padding: 24px;
    color: #f1f5f9;
}

.atc-contact-card h5,
.atc-contact-card h6 {
    color: #ffffff !important;
}

.atc-contact-card label {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.atc-contact-input {
    background: #0b0e16 !important;
    border: 1px solid #2a344a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100%;
}

.atc-contact-input:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
    background: #0e121c !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Evitar títulos blancos invisibles sobre fondos claros */
.bg-white .atc-section-heading h2,
section[style*="background:#fff"] .atc-section-heading h2,
section[style*="background: #fff"] .atc-section-heading h2 {
    color: #0f172a !important;
}

/* 5. Slider Box Hero (Estilo Noticia Portada) */
.atc-slider-box {
    position: relative !important;
    background: #0d111a !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 380px !important;
}

.atc-slider-box-mobile {
    min-height: 330px !important;
    border-radius: 10px !important;
    border: 1px solid var(--atc-border-dark) !important;
}

.atc-slider-header {
    background: #11151f !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--atc-border-dark) !important;
    z-index: 5 !important;
    flex-shrink: 0 !important;
}

.atc-slider-badge {
    color: #f1f5f9 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.atc-slider-nav-btns {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.atc-slider-ctrl-btn {
    background: #1e2536 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 11px !important;
    transition: all 0.2s ease !important;
}

.atc-slider-ctrl-btn:hover {
    background: var(--atc-red) !important;
    border-color: var(--atc-red) !important;
    transform: scale(1.08) !important;
}

.atc-slider-counter {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    min-width: 36px !important;
    text-align: center !important;
}

.atc-slider-content {
    position: relative !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 330px !important;
    height: 100% !important;
    overflow: hidden !important;
}

.atc-slide-item {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.atc-slide-item.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.atc-slide-link {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.atc-slide-media {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.atc-slide-media img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.atc-slide-link:hover .atc-slide-media img {
    transform: scale(1.06) !important;
}

.atc-slide-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 40%, rgba(0,0,0,0.55) 70%, rgba(9,12,18,0.96) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.atc-slide-glass {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 65%, black 90%) !important;
    mask-image: linear-gradient(to bottom, transparent 65%, black 90%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.atc-slide-body {
    position: relative !important;
    z-index: 3 !important;
    padding: 22px 24px 22px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.atc-slide-volanta {
    display: inline-block !important;
    align-self: flex-start !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
    color: #ffcc00 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    border-left: 3px solid var(--atc-red) !important;
    padding: 3px 8px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    border-radius: 2px !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}

.atc-slide-title {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    transition: color 0.2s ease !important;
}

.atc-slide-link:hover .atc-slide-title {
    color: #ffcc00 !important;
}

.atc-slide-copete {
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8) !important;
}

@media (max-width: 768px) {
    .atc-slider-box-mobile {
        min-height: 320px !important;
    }
    .atc-slider-content {
        min-height: 275px !important;
    }
    .atc-slide-body {
        padding: 16px 16px 18px 16px !important;
    }
    .atc-slide-title {
        font-size: 18px !important;
        line-height: 1.25 !important;
    }
    .atc-slide-copete {
        font-size: 12px !important;
    }
}


/* ============================================================
   CORRECCIÓN CRÍTICA: MENÚ LATERAL OFFCANVAS (DRAWER FIJO SOBRE LA WEB)
   ============================================================ */
#mySidenav,
.offcanvas.side-menu,
.offcanvas-start {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background-color: #0f131c !important;
    border-right: 2px solid var(--atc-red) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s ease !important;
}

#mySidenav:not(.show) {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
}

#mySidenav.show {
    transform: translateX(0) !important;
    visibility: visible !important;
}

/* Backdrop oscuro cuando el menú está abierto */
.offcanvas-backdrop,
#atcNavBackdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 99990 !important;
    backdrop-filter: blur(4px) !important;
}

/* ============================================================
   CORRECCIÓN CRÍTICA: BOTÓN CERRAR DE WHATSAPP FLOTANTE
   ============================================================ */
.floating-wpp {
    z-index: 9998 !important;
}

.floating-wpp .floating-wpp-popup {
    z-index: 9999 !important;
}

.floating-wpp .floating-wpp-head .close,
.floating-wpp .close,
#wpdiv .close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    opacity: 0.85 !important;
    cursor: pointer !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 4px !important;
    transition: opacity 0.2s ease !important;
}

.floating-wpp .floating-wpp-head .close:hover,
#wpdiv .close:hover {
    opacity: 1 !important;
    color: #ffffff !important;
}


/* ============================================================
   BOTÓN SCROLL TO TOP FLOTANTE (MISMO TAMAÑO QUE WHATSAPP: 60px)
   ============================================================ */
#scroll-to-top {
    position: fixed !important;
    bottom: 85px !important;
    right: 15px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(220, 38, 38, 0.5) !important;
    font-size: 24px !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9995 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease !important;
    outline: none !important;
}

#scroll-to-top:hover {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.75) !important;
    color: #ffffff !important;
}


/* ============================================================
   MODALES (BOOTSTRAP Y LA MOLE): SIEMPRE EN PRIMER PLANO TOTAL
   ============================================================ */
.modal,
#modalLaMole,
#ventana_modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
    outline: 0 !important;
}

.modal.show,
#modalLaMole.show {
    display: block !important;
}

.modal-dialog {
    position: relative !important;
    z-index: 100010 !important;
    pointer-events: auto !important;
}

.modal-backdrop,
.modal-backdrop.show,
#atcMoleBackdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    z-index: 99998 !important;
    backdrop-filter: blur(4px) !important;
}


/* ============================================================
   BARRA DE SERVICIOS Y MERCADOS: VERSIÓN EXCLUSIVA PARA MÓVIL
   ============================================================ */
.atc-services-bar-mob {
    background: linear-gradient(180deg, #111623 0%, #0c0f18 100%);
    border-bottom: 1px solid #1e2638;
    border-top: 1px solid rgba(220, 53, 69, 0.35);
    padding: 7px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 80;
}

.atc-services-bar-mob::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, rgba(12, 15, 24, 0.95));
    pointer-events: none;
    z-index: 2;
}

.atc-services-track-mob {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 2px 14px;
    scrollbar-width: none;
}

.atc-services-track-mob::-webkit-scrollbar {
    display: none;
}

.mob-pill-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161c2b;
    border: 1px solid #242e44;
    border-radius: 20px;
    padding: 5px 12px;
    min-height: 38px;
    text-decoration: none !important;
    color: #f1f5f9;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mob-pill-item:active {
    transform: scale(0.96);
    background: #1c2438;
}

.mob-pill-item.coast-pill {
    background: linear-gradient(135deg, #1e263a, #141926);
    border: 1px solid rgba(220, 53, 69, 0.7);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.25);
}

.mob-pill-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.mob-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: atcPulse 1.5s infinite;
}

.mob-pill-link-icon {
    font-size: 9px;
    color: #94a3b8;
    margin-left: 2px;
}

.mob-pill-icon {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mob-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.mob-pill-kicker {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #94a3b8;
    text-transform: uppercase;
}

.mob-pill-val {
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.mob-badge-tag {
    font-size: 8.5px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1;
}

.mob-badge-tag.blue { background-color: #2563eb; }
.mob-badge-tag.oficial { background-color: #059669; }
.mob-badge-tag.mep { background-color: #7c3aed; }
