/* ===================================
   HERO CAROUSEL - Diseño Dinámico
   =================================== */

.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
}

/* Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(31, 58, 95, 0.78) 0%,
        rgba(93, 187, 219, 0.68) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
}

.slide-content.centered {
    max-width: 900px;
    margin: 0 auto;
}

/* EMO and Results Badges */
.emo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(93, 187, 219, 0.9) 0%, rgba(31, 58, 95, 0.9) 100%);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(93, 187, 219, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.emo-badge i {
    font-size: 1.2rem;
    color: #FFFFFF;
}

.emo-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.results-badge i {
    font-size: 1rem;
    color: #FFFFFF;
}

.results-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

/* Slide Titles */
.slide-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide-title-large {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.slide-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    color: #FFFFFF;
    opacity: 0.95;
    font-weight: 300;
}

.text-gradient {
    background: linear-gradient(135deg, #5DBBDB 0%, #87CEEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   SERVICE BADGES - Slide 1
   =================================== */
.service-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(93, 187, 219, 0.8);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(93, 187, 219, 0.4);
}

.badge i {
    font-size: 1.8rem;
    color: #5DBBDB;
    filter: drop-shadow(0 2px 8px rgba(93, 187, 219, 0.6));
}

.badge span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-white);
}

/* ===================================
   FLOATING TEXT - Slide 2
   =================================== */
.floating-text-container {
    height: 150px;
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
}

.floating-text {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #5DBBDB 0%, #87CEEB 50%, #5DBBDB 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s linear infinite;
}

.text-item.active {
    opacity: 1;
    transform: translateY(0);
}

.text-item.exiting {
    opacity: 0;
    transform: translateY(-100px);
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

/* Buttons */
.slide-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(93, 187, 219, 0.4);
}

.btn--large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(93, 187, 219, 0.6);
}

/* ===================================
   ISO CARDS - Slide 3
   =================================== */
.iso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.iso-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.iso-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #5DBBDB;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(93, 187, 219, 0.5);
}

.iso-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #5DBBDB 0%, #1F3A5F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(93, 187, 219, 0.4);
}

.iso-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.iso-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.iso-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ===================================
   STATS GRID - Slide 4
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #5DBBDB;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(93, 187, 219, 0.4);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #5DBBDB 0%, #1F3A5F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(93, 187, 219, 0.4);
}

.stat-box p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===================================
   CAROUSEL CONTROLS
   =================================== */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--color-white);
    font-size: 1.5rem;
}

.carousel-control:hover {
    background: rgba(93, 187, 219, 0.4);
    border-color: #5DBBDB;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 24px rgba(93, 187, 219, 0.4);
}

.carousel-control--prev {
    left: 2rem;
}

.carousel-control--next {
    right: 2rem;
}

/* ===================================
   CAROUSEL INDICATORS
   =================================== */
.carousel-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: #5DBBDB;
    border-color: #5DBBDB;
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(93, 187, 219, 0.6);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media screen and (max-width: 768px) {
    .service-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .badge {
        padding: 1rem 0.75rem;
    }

    .badge i {
        font-size: 1.5rem;
    }

    .badge span {
        font-size: 0.75rem;
    }

    .iso-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carousel-control {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .carousel-control--prev {
        left: 1rem;
    }

    .carousel-control--next {
        right: 1rem;
    }

    .floating-text-container {
        height: 120px;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn--large {
        width: 100%;
        padding: 0.875rem 2rem;
    }
}
