

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    font-family: sans-serif;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.active {
    opacity: 1;
}

/* ESTE ES EL MARGEN DE 1280px */
.inner-content {
    position: relative; /* Indispensable para que el z-index funcione */
    z-index: 2;        /* Mayor al de la superposición (que no tiene o es 1) */
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.slide-text {
    max-width: 600px; /* Limita el ancho del texto como en la imagen */
    text-align: left;
    color: #1a2a3a; /* Azul oscuro similar a la imagen */
}

.slide-text h1 {
	color: #0A2339;
    font-size: 1.8em;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: bold;
}

.slide-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #0A2339;
}

/* Botón estilo azul de la imagen */
.slider-container .btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background-color: #2a7fae;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.slider-container .btn:hover { background-color: #1f6187; }
.slider-container .btn span { margin-left: 10px; font-size: 0.8rem; }


/* Superposición oscura para que el texto resalte */
.slide::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Tu capa clara */
    z-index: 1; /* Se queda en el nivel 1 */
}

.slide-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}



/* Responsive */
@media (max-width: 768px) {
    .slider-container { height: 400px; }
    .slide-content h1 { font-size: 2rem; }
}

/* Botones de navegación */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
}
.next { right: 0; }