/* ============================================
   ANIMATIONS.CSS - Animaciones personalizadas
   Quarzo 2K - Basado en Constrc Template
   ============================================ */

/* Hero Section Animations */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--q2k-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-slider__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--q2k-white);
    padding: 0.55rem 1.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--q2k-white);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--q2k-white);
    background: transparent;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-outline:hover {
    background: var(--q2k-white);
    color: var(--q2k-primary);
    transform: translateY(-2px);
}

.hero-slider__dots {
    position: absolute;
    bottom: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 4;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active,
.hero-dot:hover {
    background: var(--q2k-white);
    transform: scale(1.2);
}

.hero-dot:focus-visible {
    outline: 2px solid var(--q2k-white);
    outline-offset: 3px;
}

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

@media (max-width: 992px) {
    .hero {
        min-height: 560px;
        padding: 4rem 0 5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 3.5rem 0 5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-slider__dots {
        bottom: 1.75rem;
    }
}

/* Card Hover Effects */
.card {
    background: var(--q2k-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--q2k-primary);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--q2k-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: var(--q2k-primary);
    transform: scale(1.1);
}

.card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--q2k-primary);
    transition: fill var(--transition-base);
}

.card:hover .card-icon svg {
    fill: var(--q2k-white);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--q2k-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-base);
}

.feature-icon:hover {
    background: var(--q2k-primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--q2k-primary);
    transition: fill var(--transition-base);
}

.feature-icon:hover svg {
    fill: var(--q2k-white);
}

/* Section Title Animations */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--q2k-accent);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Button Animations */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--q2k-accent);
    color: var(--q2k-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--q2k-primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 2rem;
    transition: all var(--transition-base);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--q2k-dark);
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.feature-item:hover {
    transform: translateY(-5px);
}

/* Services Section */
.services {
    background: var(--q2k-white);
}

.services .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services .card h3 {
    margin-bottom: 1rem;
    color: var(--q2k-dark);
}

.services .card p {
    color: #666;
    flex-grow: 1;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: var(--spacing-xxl) 0;
}

.why-choose-us .feature-item {
    background: var(--q2k-white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.why-choose-us .feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xxl) 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section .btn {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .why-choose-us .feature-item {
        padding: 2rem 1.5rem;
    }
}

