/* ========================================
   BANNER - ESTILOS DEL FRONTEND
   ======================================== */

.banner {
    position: relative;
    
    /* Ancho completo escapando del contenedor padre */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    
    /* Navegadores modernos con soporte dvw */
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    

    
    overflow: hidden;
    
    /* Imagen de fondo */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    
    /* Flexbox para centrar contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Asegurar que esté por encima de otros elementos */
    z-index: 1;
}

/* Overlay para oscurecer la imagen de fondo */
.banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Contenedor del contenido */
.banner .banner-container {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 1200px;
    width: 100%;
}

/* Alineación horizontal del texto */
.banner.text-left .banner-container {
    text-align: left;
}

.banner.text-center .banner-container {
    text-align: center;
}

.banner.text-right .banner-container {
    text-align: right;
}

/* Alineación vertical del contenido */
.banner.vertical-top {
    align-items: flex-start;
}

.banner.vertical-center {
    align-items: center;
}

.banner.vertical-bottom {
    align-items: flex-end;
}

/* Ajustes de padding para alineación vertical */
.banner.vertical-top .banner-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.banner.vertical-bottom .banner-container {
    padding-top: 60px;
    padding-bottom: 40px;
}

/* Título principal */
.banner .banner-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: inherit;
}

/* Subtítulo */
.banner .banner-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: inherit;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para contenido con formato HTML en subtítulo */
.banner .banner-subtitle h1,
.banner .banner-subtitle h2,
.banner .banner-subtitle h3,
.banner .banner-subtitle h4,
.banner .banner-subtitle h5,
.banner .banner-subtitle h6 {
    color: inherit;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin: 10px 0;
    line-height: 1.3;
}

.banner .banner-subtitle h1 { font-size: 1.8rem; }
.banner .banner-subtitle h2 { font-size: 1.6rem; }
.banner .banner-subtitle h3 { font-size: 1.4rem; }
.banner .banner-subtitle h4 { font-size: 1.2rem; }
.banner .banner-subtitle h5 { font-size: 1.1rem; }
.banner .banner-subtitle h6 { font-size: 1rem; }

.banner .banner-subtitle p {
    margin: 10px 0;
    line-height: 1.6;
    color: inherit;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner .banner-subtitle strong {
    font-weight: 700;
    color: inherit;
}

.banner .banner-subtitle em {
    font-style: italic;
}

.banner .banner-subtitle ul,
.banner .banner-subtitle ol {
    margin: 10px 0;
    padding-left: 25px;
    text-align: left;
    display: inline-block;
}

.banner .banner-subtitle li {
    margin: 5px 0;
    line-height: 1.5;
    color: inherit;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner .banner-subtitle blockquote {
    border-left: 4px solid rgba(255,255,255,0.5);
    padding-left: 20px;
    margin: 15px 0;
    font-style: italic;
    color: inherit;
    opacity: 0.9;
}

.banner .banner-subtitle a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.banner .banner-subtitle a:hover {
    opacity: 1;
    color: inherit;
}

/* Botón del banner */
.banner .banner-button-container {
    margin-top: 30px;
}

.banner .banner-button {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220,53,69,0.3);
    border: none;
    cursor: pointer;
    text-shadow: none;
}

.banner .banner-button:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220,53,69,0.4);
    color: white;
    text-decoration: none;
}

.banner .banner-button:active {
    transform: translateY(0);
}

/* Placeholder cuando no hay imagen de fondo */
.banner.no-background {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive */
@media (max-width: 768px) {
    
    .banner .banner-container {
        padding: 40px 15px;
    }
    
    .banner .banner-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .banner .banner-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .banner .banner-title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .banner .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .banner .banner-container {
        padding: 30px 10px;
    }
}
