/* Estodas - Banner superior
   Estilos responsive, pensados para encajar con el tema 01oslo.
   Sin librerías externas. */

.estodas-topbanner {
    position: relative;
    width: 100%;
    margin: 0 0 15px;
    overflow: hidden;
    border-radius: 3px;
    line-height: 0; /* evita el hueco bajo la imagen */
}

/* Enlace ocupa todo el banner */
.estodas-topbanner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Imagen siempre responsive */
.estodas-topbanner-pic,
.estodas-topbanner-img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Texto / CTA superpuesto --- */
.estodas-topbanner-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4%;
    line-height: 1.3;
    /* degradado para legibilidad del texto sobre la imagen */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

/* Banner SOLO de texto (sin imagen): no superpuesto, con fondo de marca */
.estodas-topbanner-caption--solo {
    position: relative;
    background: #e4752b;
    color: #fff;
    padding: 18px 20px;
    text-align: center;
    justify-content: center;
}

.estodas-topbanner-caption-inner {
    max-width: 60%;
}
.estodas-topbanner-caption--solo .estodas-topbanner-caption-inner {
    max-width: 100%;
}

.estodas-topbanner-text {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.estodas-topbanner-caption--solo .estodas-topbanner-text {
    text-shadow: none;
}

/* CTA: usa las clases del tema (.btn .button) y añade acento de marca */
.estodas-topbanner-cta {
    display: inline-block;
    margin-top: 12px;
    background: #e4752b;
    border-color: #cf6620;
    color: #fff;
}
.estodas-topbanner-cta:hover,
.estodas-topbanner-cta:focus {
    background: #cf6620;
    border-color: #b85a1c;
    color: #fff;
}
.estodas-topbanner-caption--solo .estodas-topbanner-cta {
    background: #fff;
    color: #e4752b;
    border-color: #fff;
}

/* --- Botón cerrar --- */
.estodas-topbanner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 26px;
    font-size: 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
}
.estodas-topbanner-close:hover,
.estodas-topbanner-close:focus {
    background: rgba(0, 0, 0, 0.7);
    outline: none;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .estodas-topbanner-text { font-size: 18px; }
    .estodas-topbanner-caption-inner { max-width: 70%; }
}

@media (max-width: 767px) {
    .estodas-topbanner-caption {
        padding: 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
        align-items: flex-end;
        justify-content: center;
        text-align: center;
    }
    .estodas-topbanner-caption-inner { max-width: 100%; }
    .estodas-topbanner-text { font-size: 15px; }
    .estodas-topbanner-cta { margin-top: 8px; padding: 6px 12px; }
    .estodas-topbanner-caption--solo .estodas-topbanner-text { font-size: 16px; }
}
