﻿/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    position: relative;
    margin: 0 auto;
}

    .scroll-arrow::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--primary-color);
    }

/* Hero Index */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 135deg, rgba(1, 1, 1, 0.8) 0%, rgba(224, 43, 77, 0.1) 50%, rgba(1, 1, 1, 0.9) 100% );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 1rem;
}

.hero-title {
    font-family: 'Quickpen';
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

/* Mute/Unmute */
.mute-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 4;
    background: rgba(1, 1, 1, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
}

    .mute-button.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .mute-button:hover {
        background: rgba(224, 43, 77, 0.8);
        border-color: var(--primary-color);
        transform: translateY(0) scale(1.05);
        box-shadow: 0 4px 15px rgba(224, 43, 77, 0.3);
    }

    .mute-button:active,
    .mute-button.clicked {
        transform: translateY(0) scale(0.95);
    }

    .mute-button i {
        transition: transform 0.2s ease;
    }

    .mute-button:hover i {
        transform: scale(1.1);
    }

/* Sección Features */
#features {
    background: var(--gradient-dark);
    padding: 4rem 0;
}

    #features .card {
        transition: all 0.3s ease;
        border: none;
        background: rgba(51, 51, 51, 0.9);
        backdrop-filter: blur(15px);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

        #features .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
            background: rgba(51, 51, 51, 0.95);
        }

    #features .card-body {
        padding: 2rem 1.5rem;
        position: relative;
        z-index: 2;
    }

    #features .card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    #features .card:hover img {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(224, 43, 77, 0.2);
    }

    #features .card-title {
        color: var(--text-color);
        font-weight: 600;
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    #features .card-text {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.95rem;
        line-height: 1.6;
    }

    #features .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    #features .card:hover::before {
        left: 100%;
    }

.feat-link {
    text-decoration: none;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        display: block;
        margin: 0.5rem auto;
        max-width: 200px;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-video {
        opacity: 0.4;
    }

    .hero-overlay {
        background: linear-gradient( 135deg, rgba(1, 1, 1, 0.9) 0%, rgba(224, 43, 77, 0.1) 50%, rgba(1, 1, 1, 0.95) 100% );
    }

    #features .card img {
        height: 200px;
    }

    #features .card-body {
        padding: 1.5rem 1rem;
    }

    #features {
        padding: 3rem 0;
    }

    .mute-button {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    #features .card img {
        height: 180px;
    }

    #features .card-title {
        font-size: 1.1rem;
    }

    #features .card-text {
        font-size: 0.9rem;
    }

    .mute-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
