/*
Theme Name: Limite48h Theme
Author: AI Creator
Description: Tema premium a medida para Límite 48H con soporte para Elementor y Gutenberg, y diseño anti-gravedad.
Version: 1.0.0
Text Domain: limite48h
*/

/* Custom properties and anti-gravity effects */

@layer utilities {
    .shadow-glow {
        box-shadow: 0 0 20px rgba(217, 4, 41, 0.4);
    }
    .shadow-glow:hover {
        box-shadow: 0 0 30px rgba(217, 4, 41, 0.6);
    }
    .glass-header {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
    .glass-header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .glass-card {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    }
}

/* Base Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: #d90429;
    color: white;
}

.btn-primary:hover {
    background-color: #ef233c;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid #0f0f11;
    color: #0f0f11;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #0f0f11;
    color: white;
}

.btn.glow-red {
    border-color: #d90429;
    color: #d90429;
}
.btn.glow-red:hover {
    background-color: #d90429;
    color: white;
    box-shadow: 0 0 25px rgba(217, 4, 41, 0.5);
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    color: #4b5563;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #0f0f11;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: #d90429;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Range input styling */
.range-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d90429;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.6);
    border: 4px solid white;
    transition: transform 0.1s;
}
.range-styled::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.range-styled::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d90429;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.6);
    border: 4px solid white;
    transition: transform 0.1s;
}
.range-styled::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Anti-gravity Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

.antigravity-float {
    animation: float 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.antigravity-float-slow {
    animation: float-slow 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hover-float {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.hover-float:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Scroll Revel Reveal Styles */
.antigravity-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.antigravity-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Testimonials & FAQs */
.star-icon {
    color: #d90429;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.accordion-item:last-child {
    border-bottom: none;
}
.accordion-header {
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}
.accordion-item.active .accordion-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}
.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
