/* ===================================================================
   HERO CAROUSEL COMPONENT
   Modern, Professional Homepage Slider for K-9 Internacional
   =================================================================== */

/* Carousel Wrapper */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background: #0f172a;
}

/* Carousel Container */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

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

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.75) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(15, 23, 42, 0.75) 100%
    );
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 80px 0;
    max-width: 800px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 35px 0;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.btn-hero {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-outline-hero {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 20px;
}

.hero-nav:hover {
    background: rgba(240, 180, 90, 0.95);
    border-color: rgba(240, 180, 90, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(240, 180, 90, 0.4);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

/* Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

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

.indicator.active {
    width: 40px;
    border-radius: 6px;
    background: rgba(240, 180, 90, 0.95);
    border-color: rgba(240, 180, 90, 1);
    box-shadow: 0 4px 12px rgba(240, 180, 90, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ken Burns Effect (optional) */
.hero-slide.ken-burns {
    animation: kenBurns 20s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Progress Bar (optional enhancement) */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0b45a 0%, #e49f3c 100%);
    z-index: 11;
    transition: width 5s linear;
}

.hero-slide.active .hero-progress {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-content {
        max-width: 700px;
    }
}

@media (max-width: 991px) {
    .hero-carousel-wrapper {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
        max-width: 600px;
    }

    .hero-nav {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-carousel-wrapper {
        height: 65vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 80px 0 60px 0;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero,
    .btn-outline-hero {
        padding: 14px 32px;
        font-size: 15px;
        text-align: center;
        width: 100%;
        max-width: 280px;
    }

    .hero-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }

    .hero-indicators {
        bottom: 30px;
        gap: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .hero-carousel-wrapper {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero,
    .btn-outline-hero {
        padding: 12px 28px;
        font-size: 14px;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }
}

/* Touch Swipe Support */
.hero-carousel-wrapper {
    touch-action: pan-y;
}

/* Accessibility */
.hero-nav:focus,
.indicator:focus {
    outline: 3px solid rgba(240, 180, 90, 0.8);
    outline-offset: 3px;
}

/* Loading State */
.hero-carousel-wrapper.loading .hero-slide {
    opacity: 0;
}

.hero-carousel-wrapper.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #f0b45a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Pause on Hover */
.hero-carousel-wrapper:hover .hero-slide.active {
    animation-play-state: paused;
}

/* Print Styles */
@media print {
    .hero-carousel-wrapper {
        height: auto;
        min-height: auto;
    }

    .hero-nav,
    .hero-indicators {
        display: none;
    }

    .hero-slide {
        position: relative;
        page-break-inside: avoid;
    }
}
