/* SMDP - Slider fotográfico */

.smdp-slider-foto {
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d9e1eb;
    border-radius: 12px;
    overflow: hidden;
}

.smdp-slider-foto__cabecera {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #5574A1;
}

.smdp-slider-foto__cuadrado {
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: #F4CE35;
    border-radius: 0;
}

.smdp-slider-foto__etiqueta {
    color: #fff;
    font-family: "OCR A Std", "OCR A Extended", monospace;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.smdp-slider-foto .smdp-slider-noticias__slide {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    align-items: stretch !important;
    min-height: 0 !important;
}

.smdp-slider-foto .smdp-slider-noticias__media {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}

.smdp-slider-foto .smdp-slider-noticias__media-link {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.smdp-slider-foto .smdp-slider-noticias__img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: contain !important;
}

.smdp-slider-foto .smdp-slider-noticias__contenido {
    display: block !important;
    flex: 1;
    padding: 18px 20px !important;
    margin: 0 !important;
    background: #5574A1 !important;
    text-align: left !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo {
    margin: 0 !important;
    font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
    font-weight: 700;
    line-height: 1.3 !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo a {
    color: #fff !important;
    text-decoration: none !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo a:hover {
    text-decoration: underline !important;
}

.smdp-slider-foto__controles {
    position: relative;
    height: 52px;
    background: #fff;
}

.smdp-slider-foto .smdp-slider-noticias__flecha {
    top: 6px !important;
    bottom: auto !important;
    width: 38px !important;
    height: 38px !important;
    transform: none !important;
}

.smdp-slider-foto .smdp-slider-noticias__flecha--prev {
    left: 12px !important;
}

.smdp-slider-foto .smdp-slider-noticias__flecha--next {
    right: 12px !important;
}

.smdp-slider-foto .smdp-slider-noticias__puntos {
    top: 22px !important;
    bottom: auto !important;
    left: 50% !important;
}

@media (max-width: 767px) {
    .smdp-slider-foto__cabecera {
        padding: 12px 15px;
    }

    .smdp-slider-foto__etiqueta {
        font-size: 17px;
    }

    .smdp-slider-foto .smdp-slider-noticias__contenido {
        padding: 15px !important;
    }
}


/* Ajuste: ocultar controles inferiores */
.smdp-slider-foto__controles {
    display: none !important;
}

/* Ajuste: titular en una sola línea */
.smdp-slider-foto .smdp-slider-noticias__contenido {
    padding: 14px 20px !important;
    min-height: 56px !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 28px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Cabecera compacta */
.smdp-slider-foto__cabecera {
    padding: 8px 15px !important;
    gap: 10px !important;
}

.smdp-slider-foto__etiqueta {
    line-height: 1.2 !important;
}

@media (max-width: 767px) {
    .smdp-slider-foto__cabecera {
        padding: 8px 12px !important;
    }
}



/* === SMDP: Fuente OCR corporativa === */

@font-face {
    font-family: 'SMDP OCR';
    src: url('/wp-content/uploads/fonts/OCRAStd.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Cabecera azul compacta */
.smdp-slider-foto .smdp-slider-foto__cabecera {
    display: flex;
    align-items: center;
    gap: 8px !important;
    padding: 6px 12px !important;
    background: #5574A1;
}

/* Cuadrado amarillo */
.smdp-slider-foto .smdp-slider-foto__cuadrado {
    width: 9px !important;
    height: 9px !important;
    flex: 0 0 9px !important;
    background: #F4CE35;
    border-radius: 0 !important;
}

/* Texto OCR */
.smdp-slider-foto .smdp-slider-foto__etiqueta {
    font-family: 'SMDP OCR', monospace !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    color: #FFFFFF;
}

@media (max-width: 767px) {
    .smdp-slider-foto .smdp-slider-foto__cabecera {
        padding: 6px 10px !important;
    }

    .smdp-slider-foto .smdp-slider-foto__etiqueta {
        font-size: 16px !important;
    }
}

/* SMDP - Franja del titular más compacta */
.smdp-slider-foto .smdp-slider-noticias__contenido {
    padding: 7px 12px !important;
    min-height: 0 !important;
}

.smdp-slider-foto .smdp-slider-noticias__titulo {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

