.carrusel {
    width: 100%;
    position: relative;
    background-color: var(--color-plomo-oscuro); 
}

.carrusel-container {
    position: relative;
    width: 100%;
    height: 275px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0; 
    animation: fadeSlide 12s infinite linear; 
}

.carrusel-slide:nth-child(1) img { animation-delay: 0s; }
.carrusel-slide:nth-child(2) img { animation-delay: 4s; }
.carrusel-slide:nth-child(3) img { animation-delay: 8s; }

@keyframes fadeSlide {
    0%   { opacity: 0; transform: scale(1); }
    8%   { opacity: 1; } 
    25%  { opacity: 1; } 
    33%  { opacity: 0; transform: scale(1.1); } 
    100% { opacity: 0; transform: scale(1.1); } 
}

.carrusel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 3;
}

.carrusel-content {
    position: relative;
    z-index: 4;
    color: var(--color-blanco);
    text-align: center;
    max-width: 900px;
}

.carrusel-content h1 {
    font-size: 32px; 
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

.carrusel-content p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    font-family: var(--fuente-roboto);
}

@media (max-width: 1024px) {
    .carrusel-container { height: 250px; }
    .carrusel-content h1 { font-size: 28px; }
    .carrusel-content p { font-size: 15px; }
}

@media (max-width: 480px) {
    .carrusel-container { height: 200px; }
    .carrusel-content h1 { font-size: 18px; }
    .carrusel-content p { font-size: 12px; }
}