/**
 * LATIDO Y RAQUETA - PREMIUM REDESIGN
 * Theme: Vitality & Rigor
 * Version: 2.0.0
 * Design System: Modern, Dynamic, Premium
 */

/* ============================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================ */

:root {
    /* Colors - Premium Palette */
    --deep-navy: #0A192F;
    --navy-light: #1a2942;
    --navy-dark: #0d1117;
    --vital-red: #FF4D4D;
    --vital-red-dark: #d43d3d;
    --gold: #D4AF37;
    --cream: #FDFBF7;
    --white: #ffffff;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(10, 25, 47, 0.85);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border Radius - Friendly & Modern */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;

    /* Shadows - Subtle Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. GLOBAL RESETS & BASE STYLES
   ============================================ */

body {
    background: var(--cream);
    font-family: var(--font-body);
    color: var(--deep-navy);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ============================================
   3. HERO SECTION - PREMIUM REDESIGN
   ============================================ */

.hero-section-home {
    position: relative;
    min-height: 100vh !important;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Remove solid blue overlay - use subtle gradient */
.hero-section-home .wp-block-cover__background {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 25, 47, 0.6) 100%) !important;
    opacity: 1 !important;
}

/* Image positioning - show people prominently */
.hero-section-home .wp-block-cover__image-background {
    object-position: center right;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05);
}

/* Hero Content Box - Glassmorphism */
.hero-content-box {
    background: var(--glass-dark) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 4rem 3.5rem !important;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hero Typography */
.hero-content-box h1 {
    font-size: clamp(3rem, 6vw, 5rem) !important;
    margin-bottom: 1.5rem !important;
    color: var(--white) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content-box h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    color: var(--gold) !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-content-box p {
    font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
    color: var(--glass-white) !important;
    line-height: 1.8 !important;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* CTA Buttons - Premium Design */
.hero-cta-button .wp-block-button__link {
    background: var(--vital-red) !important;
    color: var(--white) !important;
    padding: 1.2rem 3rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-pill) !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.3);
    transition: all var(--transition-base);
    animation: fadeInUp 0.8s ease-out 0.8s backwards, pulse-red 2s ease-in-out 2s infinite;
    text-transform: none !important;
    letter-spacing: 0.01em;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 77, 77, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 77, 77, 0.5);
        transform: scale(1.02);
    }
}

.hero-cta-button .wp-block-button__link:hover {
    background: var(--vital-red-dark) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 16px 40px rgba(255, 77, 77, 0.4);
}

/* Secondary Button - Outline Glass */
.hero-content-box .is-style-outline .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    color: var(--white) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 1.2rem 3rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-pill) !important;
    transition: all var(--transition-base);
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.hero-content-box .is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--gold) !important;
    transform: translateY(-2px);
}

/* ============================================
   4. BENTO GRID CARDS - GLASSMORPHISM
   ============================================ */

.via-card {
    background: var(--glass-white) !important;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: var(--radius-md) !important;
    padding: 3rem 2.5rem !important;
    box-shadow: var(--shadow-md) !important;
    transition: all var(--transition-slow);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.via-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vital-red), var(--gold));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.via-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
}

.via-card:hover::before {
    opacity: 1;
}

.via-card h3 {
    font-size: 1.8rem !important;
    color: var(--deep-navy) !important;
    margin-bottom: 1rem !important;
    font-weight: 800 !important;
}

.via-card p {
    color: var(--navy-light) !important;
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
}

/* ============================================
   5. STATS SECTION - RADIAL GRADIENT BG
   ============================================ */

.stats-section {
    background: radial-gradient(ellipse at center, var(--navy-light) 0%, var(--deep-navy) 100%) !important;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.stats-section h2 {
    position: relative;
    z-index: 1;
}

.stat-item {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5rem) !important;
    color: var(--gold) !important;
    font-weight: 900 !important;
    text-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    transition: all var(--transition-base);
    line-height: 1 !important;
}

.stat-item:hover {
    transform: scale(1.15);
}

.stat-item:hover .stat-number {
    color: var(--vital-red) !important;
    text-shadow: 0 8px 24px rgba(255, 77, 77, 0.6);
}

.stat-label {
    font-size: 1.2rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
}

/* ============================================
   6. BENEFITS LIST - INTERACTIVE
   ============================================ */

.benefits-list li {
    font-size: 1.2rem !important;
    padding: 1.2rem 0 !important;
    padding-left: 2rem !important;
    border-bottom: 1px solid rgba(10, 25, 47, 0.08) !important;
    transition: all var(--transition-base);
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--vital-red);
    font-weight: bold;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.benefits-list li:hover {
    padding-left: 2.5rem !important;
    background: linear-gradient(90deg, rgba(255, 77, 77, 0.05) 0%, transparent 100%);
    border-left: 4px solid var(--vital-red) !important;
}

.benefits-list li:hover::before {
    transform: scale(1.3);
    color: var(--gold);
}

/* ============================================
   7. CTA SECTION - PREMIUM FINISH
   ============================================ */

.cta-section-home {
    background: linear-gradient(135deg, var(--vital-red) 0%, var(--vital-red-dark) 100%) !important;
    position: relative;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 90%;
}

.cta-section-home::before {
    content: '♥';
    font-size: 25rem;
    color: rgba(255, 255, 255, 0.03);
    animation: heartbeat 2.5s ease-in-out infinite;
}

.cta-section-home h2,
.cta-section-home p {
    position: relative;
    z-index: 1;
}

.cta-section-home .wp-block-button__link {
    background: var(--gold) !important;
    color: var(--deep-navy) !important;
    font-weight: 800 !important;
    padding: 1.3rem 3.5rem !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    transition: all var(--transition-base);
}

.cta-section-home .wp-block-button__link:hover {
    background: var(--white) !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 40px rgba(255, 255, 255, 0.3);
}

/* ============================================
   8. SECTION LABELS - REFINED
   ============================================ */

.section-label {
    display: inline-block !important;
    padding: 0.6rem 1.8rem !important;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%) !important;
    border: 1px solid rgba(255, 77, 77, 0.2) !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--vital-red) !important;
}

/* ============================================
   9. MOBILE-FIRST RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-content-box {
        padding: 3rem 2rem !important;
        margin: 2rem 1rem !important;
    }

    .hero-content-box h1 {
        font-size: 2.5rem !important;
    }

    .hero-content-box h2 {
        font-size: 1.5rem !important;
    }

    .hero-cta-button .wp-block-button__link,
    .hero-content-box .is-style-outline .wp-block-button__link {
        width: 100%;
        padding: 1.1rem 2rem !important;
        font-size: 1rem !important;
    }

    .via-card {
        padding: 2rem 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-number {
        font-size: 3rem !important;
    }

    .cta-section-home {
        padding: 4rem 2rem !important;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content-box {
        padding: 2rem 1.5rem !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .benefits-list li {
        font-size: 1rem !important;
        padding-left: 1.5rem !important;
    }
}

/* ============================================
   10. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration for animations */
.hero-content-box,
.via-card,
.stat-item,
.hero-cta-button .wp-block-button__link {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
