/* CSS adicional específico para el home */
.institucional-header,
.noticias-header {
    position: relative;
    z-index: 1;
}

.institucional-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.badge {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .institucional-header,
    .noticias-header {
        clip-path: none;
    }

    .slider-section .carousel-inner {
        height: 250px;
    }

    .slider-section .carousel-item > div {
        height: 250px !important;
    }
}

/* Hero Slider APAT - Pantalla completa con altura reducida */
.apat-hero-slider {
    height: 50vh;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.apat-slide {
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.apat-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(33, 183, 234, 0.8) 0%,
        rgba(238, 63, 52, 0.6) 100%
    );
    z-index: 1;
}

.apat-slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 30px 0;
    margin-left: calc(50vw - 50%);
    margin-right: calc(50vw - 50%);
}

.apat-slide-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.apat-slide-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.apat-btn-primary {
    background: linear-gradient(45deg, #ee3f34, #21b7ea);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.apat-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Indicadores personalizados */
.apat-hero-slider .carousel-indicators {
    bottom: 20px;
    margin-left: calc(50vw - 50%);
    margin-right: calc(50vw - 50%);
}

.apat-hero-slider .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.apat-hero-slider .carousel-indicators button.active {
    background-color: #21b7ea;
    border-color: #21b7ea;
    transform: scale(1.2);
}

/* Controles de navegación */
.apat-hero-slider .carousel-control-prev,
.apat-hero-slider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.apat-hero-slider .carousel-control-prev {
    left: 20px;
}

.apat-hero-slider .carousel-control-next {
    right: 20px;
}

.apat-hero-slider .carousel-control-prev:hover,
.apat-hero-slider .carousel-control-next:hover {
    background: rgba(33, 183, 234, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .apat-hero-slider,
    .apat-slide {
        height: 40vh;
        min-height: 300px;
    }

    .apat-slide-title {
        font-size: 2.2rem;
    }

    .apat-slide-subtitle {
        font-size: 1rem;
    }

    .apat-slide-content {
        padding: 20px 0;
    }

    .apat-hero-slider .carousel-control-prev,
    .apat-hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .apat-hero-slider .carousel-control-prev {
        left: 15px;
    }

    .apat-hero-slider .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .apat-hero-slider,
    .apat-slide {
        height: 35vh;
        min-height: 280px;
    }

    .apat-slide-title {
        font-size: 1.8rem;
    }

    .apat-btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
