/* ==================================================
   SEDEFOM ORURO
   SERVICIO DEPARTAMENTAL DE FORTALECIMIENTO MUNICIPAL
   DISEÑO INSTITUCIONAL MODERNO
   COLOR PRINCIPAL: #680202
   ================================================== */


/* ==================================================
   1. CONFIGURACIÓN GENERAL
   ================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: var(
        --font-primary,
        "Segoe UI",
        Arial,
        sans-serif
    );

    color: var(--color-white, #ffffff);

    background:
        linear-gradient(
            135deg,
            #210000 0%,
            #480101 50%,
            #680202 100%
        );

    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff9c9c;
    outline-offset: 4px;
}

::selection {
    background: #ff4657;
    color: white;
}


/* ==================================================
   2. ENCABEZADO INSTITUCIONAL
   ================================================== */

.institutional-header {
    position: relative;
    z-index: 20;

    background: rgba(35, 0, 0, 0.92);

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.institutional-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-accent {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;

    color: #ffffff;

    text-shadow:
        0 0 25px rgba(255, 70, 87, 0.35);
}

.brand-description {
    display: flex;
    flex-direction: column;

    font-size: 0.85rem;
    line-height: 1.6;
}

.brand-description span {
    opacity: 0.75;
}


/* ==================================================
   3. MENÚ DE NAVEGACIÓN - CORREGIDO
   ================================================== */

.main-navbar {
    position: relative;
    z-index: 15;
    background: rgba(104, 2, 2, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Los enlaces se distribuyen sin salirse del ancho disponible. */
.main-navbar .navbar-collapse {
    min-width: 0;
}

.main-navbar .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 2px 4px;
    min-width: 0;
}

.main-navbar .navbar-nav .nav-item {
    flex: 0 0 auto;
}

.navbar .nav-link {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    padding: 10px 7px !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: #ffb0b0;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 4px;
    height: 2px;
    background: #ff4657;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

/* En pantallas pequeñas, el menú se despliega verticalmente. */
@media (max-width: 991.98px) {
    .main-navbar .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
    }

    .main-navbar .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar .nav-link {
        display: block;
        white-space: normal;
        padding: 12px 14px !important;
    }
}


/* ==================================================
   4. ACCESO INTERNO
   ================================================== */

.internal-access {
    border: 1px solid #ff4657;

    border-radius: 30px;

    padding: 10px 18px !important;

    background: rgba(104, 2, 2, 0.25);

    transition: all 0.3s ease;
}

.internal-access:hover {
    background: #9c1010;

    box-shadow:
        0 0 25px rgba(255, 70, 87, 0.35);
}


/* ==================================================
   5. CONTENIDO GENERAL
   ================================================== */

main {
    min-height: 70vh;
}


/* ==================================================
   6. PORTADA PRINCIPAL CON IMAGEN
   ================================================== */

.hero-section {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 680px;

    padding: 110px 0;

    overflow: hidden;

    /* IMAGEN PERSONALIZADA */

    background-image:
        linear-gradient(
            90deg,
            rgba(30, 0, 0, 0.62) 0%,
            rgba(104, 2, 2, 0.35) 55%,
            rgba(104, 2, 2, 0.12) 100%
        ),
        url("../img/fondo.png");

    background-position: center center;

    background-size: cover;

    background-repeat: no-repeat;

    background-color: #680202;
}


/* DEGRADADO INFERIOR */

.hero-section::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(35, 0, 0, 0.65),
            transparent 50%
        );

    z-index: 0;
}


/* CONTENIDO DE PORTADA */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 850px;
}

.hero-eyebrow {
    font-size: 0.85rem;

    font-weight: 600;

    letter-spacing: 3px;

    color: #ffd0d0;

    margin-bottom: 22px;
}


/* TÍTULO PRINCIPAL */

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 6rem);

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: white;

    margin: 20px 0 30px;

    text-shadow:
        0 4px 25px rgba(0, 0, 0, 0.35);
}

.hero-text h1 span {
    display: block;

    color: #ff4657;

    text-shadow:
        0 0 35px rgba(255, 70, 87, 0.4);
}


/* DESCRIPCIÓN */

.hero-description {
    max-width: 650px;

    font-size: 1.15rem;

    line-height: 1.9;

    color: #ffffff;

    margin-bottom: 35px;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.6);
}


/* ==================================================
   7. BOTONES DIGITALES
   ================================================== */

.btn-digital {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 15px 32px;

    border: 1px solid #ff4657;

    border-radius: 35px;

    background:
        linear-gradient(
            135deg,
            #680202,
            #a30b18
        );

    color: #ffffff;

    text-decoration: none;

    font-weight: 600;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn-digital:hover {
    color: white;

    background:
        linear-gradient(
            135deg,
            #a30b18,
            #d51d30
        );

    transform: translateY(-4px);

    box-shadow:
        0 0 30px rgba(255, 70, 87, 0.45);
}


/* ==================================================
   8. TARJETAS CON EFECTO CRISTAL
   ================================================== */

.glass-card {
    background: rgba(104, 2, 2, 0.30);

    border: 1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 20px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(255, 100, 110, 0.7);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 70, 87, 0.18);
}


/* ==================================================
   9. INDICADORES MUNICIPALES
   ================================================== */

.hero-stats {
    display: flex;

    align-items: center;

    gap: 35px;

    width: fit-content;

    margin-top: 65px;

    padding: 25px 40px;
}

.hero-stats div:not(.stat-divider) {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 2.5rem;

    font-weight: 900;

    color: #ffffff;

    line-height: 1.2;
}

.hero-stats span {
    font-size: 0.9rem;

    color: #ffd5d5;
}

.stat-divider {
    width: 1px;

    height: 55px;

    background:
        rgba(255, 255, 255, 0.3);
}


/* ==================================================
   10. SECCIÓN DE SERVICIOS
   ================================================== */

.services-section {
    position: relative;

    padding: 100px 0;

    background:
        linear-gradient(
            180deg,
            #300000 0%,
            #520101 55%,
            #680202 100%
        );
}

.section-heading {
    text-align: center;

    margin-bottom: 55px;
}

.section-heading p,
.section-kicker {
    color: #ffaaaa;

    letter-spacing: 3px;

    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 800;

    color: white;

    margin-top: 15px;
}


/* ==================================================
   11. CUADRÍCULA DE SERVICIOS
   ================================================== */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;
}

.service-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 260px;

    padding: 30px;

    color: white;

    text-decoration: none;

    overflow: hidden;
}

.service-card:hover {
    color: white;
}

.service-icon {
    font-size: 2.5rem;

    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.15rem;

    font-weight: 700;

    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;

    line-height: 1.7;

    opacity: 0.85;
}

.service-arrow {
    position: absolute;

    right: 22px;

    bottom: 18px;

    font-size: 1.6rem;

    color: #ff9090;

    transition: transform 0.3s ease;
}

.service-card:hover .service-arrow {
    transform: translate(4px, -4px);
}


/* ==================================================
   12. PRESENTACIÓN INSTITUCIONAL
   ================================================== */

.institution-section {
    padding: 70px 0 110px;

    background:
        linear-gradient(
            135deg,
            #420000,
            #680202
        );
}

.institution-panel {
    padding: 65px;

    text-align: center;
}

.institution-panel h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);

    font-weight: 800;

    margin: 20px 0;

    color: white;
}

.institution-panel p:last-child {
    max-width: 750px;

    margin: auto;

    line-height: 1.9;

    color: #f5dede;
}


/* ==================================================
   13. ANIMACIONES
   ================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;

        transform: translateY(35px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes softGlow {
    0%,
    100% {
        text-shadow:
            0 0 15px rgba(255, 70, 87, 0.2);
    }

    50% {
        text-shadow:
            0 0 35px rgba(255, 70, 87, 0.5);
    }
}

.animate-up {
    animation: fadeUp 0.9s ease both;
}

.hero-text h1 span {
    animation: softGlow 4s ease-in-out infinite;
}


/* ANIMACIONES AL DESPLAZARSE */

.reveal {
    opacity: 1;

    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .js-animations .reveal {
        opacity: 0;

        transform: translateY(35px);

        transition:
            opacity 0.8s ease,
            transform 0.8s ease;
    }

    .js-animations .reveal.visible {
        opacity: 1;

        transform: translateY(0);
    }
}


/* ==================================================
   14. PIE DE PÁGINA
   ================================================== */

.institutional-footer {
    background: rgba(25, 0, 0, 0.96);

    border-top: 1px solid
        rgba(255, 255, 255, 0.12);
}


/* ==================================================
   15. DISEÑO RESPONSIVE
   ================================================== */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        min-height: 600px;
    }

}


@media (max-width: 768px) {

    .institutional-brand {
        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }

    .brand-accent {
        font-size: 1.6rem;
    }

    .brand-description {
        font-size: 0.75rem;
    }

    .hero-section {
        min-height: 580px;

        padding: 85px 0;
    }

    .hero-text h1 {
        font-size: clamp(2.6rem, 9vw, 4rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .institution-panel {
        padding: 35px 25px;
    }

}


@media (max-width: 600px) {

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 560px;

        padding: 75px 0;
    }

    .hero-stats {
        gap: 20px;

        padding: 20px 25px;

        margin-top: 45px;
    }

    .hero-stats strong {
        font-size: 2rem;
    }

    .service-card {
        min-height: 230px;
    }

    .institution-panel {
        padding: 30px 22px;
    }

}


/* ==================================================
   16. ACCESIBILIDAD
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

/* ==================================================
   17. FRANJA DE NOTICIAS - VERSIÓN ÚNICA
   ================================================== */
.news-ticker {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 220px;
    background: rgba(30, 0, 0, 0.96);
    border-top: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,70,87,.45);
    overflow: hidden;
}
.ticker-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 18px 26px;
    background: linear-gradient(135deg,#680202,#bd1830);
    color: white;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}
.ticker-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px #ff9090;
}
.ticker-window {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}
.ticker-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    width: max-content;
    gap: 0;
    padding: 0;
    animation: sedefomTickerFinal 28s linear infinite;
    will-change: transform;
}
.ticker-news-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    flex: 0 0 auto;
    padding: 12px 38px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}
.ticker-news-link:hover { color: #ffd5d5; }
.ticker-news-link:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
}
.ticker-news-image {
    display: block;
    width: 300px;
    height: 190px;
    max-width: none;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.35);
    box-shadow: 0 4px 15px rgba(0,0,0,.25);
}
@keyframes sedefomTickerFinal {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .news-ticker { min-height: 155px; }
    .ticker-label { padding: 12px; font-size: .7rem; }
    .ticker-news-image { width: 190px; height: 125px; }
    .ticker-news-link { font-size: 15px; gap: 12px; padding: 10px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .ticker-window { overflow-x: auto; }
}

/* SEDEFOM - PRUEBA DE FRANJA ANIMADA */

.news-ticker {
    min-height: 220px;
}

.ticker-news-image {
    width: 300px !important;
    height: 190px !important;
    max-width: none !important;
    object-fit: cover;
}

.ticker-track {
    display: flex !important;
    width: max-content;
    animation: sedefomTickerFinal 28s linear infinite !important;
}

@keyframes sedefomTickerFinal {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* TITULOS DE NOTICIAS EN 3 O MAS LINEAS */

.ticker-news-link {
    display: flex !important;
    align-items: center;
    gap: 20px;
    width: 550px !important;
    flex: 0 0 550px !important;
    white-space: normal !important;
    padding: 12px 20px;
}

.ticker-news-link span {
    display: block;
    width: 190px !important;
    max-width: 190px;
    white-space: normal !important;
    overflow-wrap: break-word;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.ticker-news-image {
    width: 300px !important;
    height: 190px !important;
    max-width: none !important;
    object-fit: cover;
    flex-shrink: 0;
}

/* MANTENER EL MOVIMIENTO */
.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: sedefomTickerFinal 28s linear infinite;
}

/* CORRECCIÓN DE VISIBILIDAD DE LAS TARJETAS */

.services-grid .service-card {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================
   SED-FM ORURO
   BARRA DE NAVEGACIÓN FIJA AL DESPLAZARSE
========================================== */

.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    width: 100%;
    background: #680202 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* Desplazamiento suave */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Línea dorada institucional */
.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: #680202 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}
/* BORDES DORADOS INSTITUCIONALES */

:root {
    --dorado-institucional: #C9A45D;
}

/* Estilo reutilizable para los recuadros */
.borde-dorado-institucional {
    border: 1px solid rgba(201, 164, 93, 0.45);
    border-radius: 24px;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.borde-dorado-institucional:hover {
    border-color: rgba(201, 164, 93, 0.85);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   18. INDICADORES MUNICIPALES - CENTRADO CORREGIDO
   Mantiene 35 ETAs y 16 Provincias lado a lado.
   ================================================== */
.hero-stats {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: fit-content;
    max-width: 100%;
}
.hero-stats > div:not(.stat-divider) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 115px;
    min-width: 0;
    text-align: center !important;
}
.hero-stats > div:not(.stat-divider) strong,
.hero-stats > div:not(.stat-divider) span {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center !important;
}
.hero-stats > .stat-divider {
    display: block !important;
    flex: 0 0 1px;
    width: 1px !important;
    height: 55px;
    margin: 0 12px;
    background: rgba(255, 255, 255, 0.3);
}
@media (max-width: 600px) {
    .hero-stats > div:not(.stat-divider) {
        flex-basis: 90px;
    }
    .hero-stats > .stat-divider {
        margin: 0 8px;
    }
}


/* ==============================================
   SED-FM ORURO - TARJETAS TECNOLÓGICAS 3D
   ============================================== */

@media (hover: hover) and (pointer: fine) {

    .services-section .services-grid {
        perspective: 1200px;
    }

    .services-section .services-grid .service-card {
        --rotate-x: 0deg;
        --rotate-y: 0deg;
        --mouse-x: 50%;
        --mouse-y: 50%;

        position: relative;
        transform:
            perspective(1000px)
            rotateX(var(--rotate-x))
            rotateY(var(--rotate-y))
            translateY(0) !important;

        transform-style: preserve-3d;
        transition:
            transform 0.25s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease !important;
        will-change: transform;
    }

    .services-section .services-grid .service-card:hover {
        transform:
            perspective(1000px)
            rotateX(var(--rotate-x))
            rotateY(var(--rotate-y))
            translateY(-10px) !important;

        border-color: rgba(230,190,105,.9) !important;

        box-shadow:
            0 24px 50px rgba(0,0,0,.35),
            0 0 30px rgba(201,164,93,.18) !important;
    }

    .services-section .services-grid .service-card::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 100%;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: radial-gradient(
            350px circle at var(--mouse-x) var(--mouse-y),
            rgba(255,215,130,.23),
            transparent 65%
        );
        transition: opacity .3s ease;
    }

    .services-section .services-grid .service-card:hover::before {
        opacity: 1;
    }

    .services-section .services-grid .service-card > * {
        position: relative;
        z-index: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-section .services-grid .service-card {
        transform: none !important;
        transition: none !important;
    }
}

/* SED-FM: soporte global de tarjetas holográficas en la portada */
.services-section .services-grid .service-card { backface-visibility: hidden; }
.services-section .services-grid .service-card:focus-visible { outline: 2px solid #ffe6a5; outline-offset: 5px; }

/* ==========================================================
   ACTUALIDAD INSTITUCIONAL: CORRECCION SOLO PARA CELULARES
   Se utilizan las clases reales de inicio.html.
   ========================================================== */
@media screen and (max-width: 767px) {
    .news-ticker {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .news-ticker .ticker-label {
        width: 100% !important;
        min-height: 58px !important;
        padding: 14px 16px !important;
        justify-content: flex-start !important;
        font-size: 0.75rem !important;
        white-space: normal !important;
    }

    .news-ticker .ticker-window {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 148px !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .news-ticker .ticker-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        width: max-content !important;
        min-width: max-content !important;
        gap: 0 !important;
        animation: sedefomTickerMovil 35s linear infinite !important;
    }

    .news-ticker .ticker-news-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex: 0 0 300px !important;
        width: 300px !important;
        min-width: 300px !important;
        height: 138px !important;
        gap: 12px !important;
        padding: 10px 12px !important;
        white-space: normal !important;
        overflow: hidden !important;
    }

    .news-ticker .ticker-news-image {
        display: block !important;
        width: 116px !important;
        height: 112px !important;
        max-width: 116px !important;
        flex: 0 0 116px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .news-ticker .ticker-news-link span {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: left !important;
    }

    @keyframes sedefomTickerMovil {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
    }
}

@media screen and (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .news-ticker .ticker-track { animation: none !important; }
    .news-ticker .ticker-window { overflow-x: auto !important; }
}
