/* Overrides para WaytoFilm - Prioridad sobre style.css */
/* Nota: scroll suave lo maneja Lenis en JS - no usar scroll-behavior aquí para evitar conflictos */

/* ==========================================================================
   DESIGN TOKENS - Colores y fuentes centralizados para optimización
   ========================================================================== */

:root {
    /* --- Colores principales (fuente única para todo el sitio) --- */
    --wtf-primary: #D30B0B;
    --wtf-primary-hover: #D30B0B;
    --wtf-secondary: #ffffff;
    --wtf-secondary-hover: #ffffff;
    --wtf-body: #dddddd;
    --wtf-body-muted: rgba(221, 221, 221, 0.8);
    --wtf-navy-black: #0f0f0f;
    --wtf-black: #000000;
    --wtf-white: #ffffff;

    /* --- Colores semánticos --- */
    --wtf-text: var(--wtf-body);
    --wtf-text-inverse: var(--wtf-white);
    --wtf-bg-dark: var(--wtf-navy-black);
    --wtf-accent: var(--wtf-primary);
    --wtf-accent-alt: var(--wtf-secondary);

    /* --- Fuentes --- */
    --wtf-font-body: "Play", ui-sans-serif, system-ui, sans-serif;
    --wtf-font-heading: "Montserrat", ui-sans-serif, system-ui, sans-serif;
    --wtf-font-accent: "Montez", cursive;

    /* --- Tamaños de fuente escalados --- */
    --wtf-text-xs: 0.75rem;
    --wtf-text-sm: 0.875rem;
    --wtf-text-base: 1rem;
    --wtf-text-lg: 1.125rem;
    --wtf-text-xl: 1.25rem;
    --wtf-text-2xl: 1.5rem;
    --wtf-text-3xl: 1.875rem;
    --wtf-text-4xl: 2.25rem;
    --wtf-text-5xl: 3rem;

    /* Sincronización con Tailwind (usa nuestras variables como fuente) */
    --color-primary: var(--wtf-primary);
    --color-secondary: var(--wtf-secondary);
    --color-body: var(--wtf-body);
    --color-navy-black: var(--wtf-navy-black);
    --font-body: var(--wtf-font-body);
    --font-italic: var(--wtf-font-accent);
    --font-secondary: var(--wtf-font-heading);
}

/* --- Clases de color (texto) --- */
.wtf-text-primary { color: var(--wtf-primary) !important; }
.wtf-text-secondary { color: var(--wtf-secondary) !important; }
.wtf-text-body { color: var(--wtf-body) !important; }
.wtf-text-body-muted { color: var(--wtf-body-muted) !important; }
.wtf-text-white { color: var(--wtf-white) !important; }
.wtf-text-black { color: var(--wtf-black) !important; }
.wtf-text-navy { color: var(--wtf-navy-black) !important; }

/* --- Clases de color (fondo) --- */
.wtf-bg-primary { background-color: var(--wtf-primary) !important; }
.wtf-bg-secondary { background-color: var(--wtf-secondary) !important; }
.wtf-bg-navy { background-color: var(--wtf-navy-black) !important; }
.wtf-bg-black { background-color: var(--wtf-black) !important; }
.wtf-bg-white { background-color: var(--wtf-white) !important; }
.wtf-bg-body { background-color: var(--wtf-body) !important; }

/* --- Clases de color (borde) --- */
.wtf-border-primary { border-color: var(--wtf-primary) !important; }
.wtf-border-secondary { border-color: var(--wtf-secondary) !important; }
.wtf-border-white { border-color: var(--wtf-white) !important; }

/* --- Clases de fuentes --- */
.wtf-font-body { font-family: var(--wtf-font-body) !important; }
.wtf-font-heading { font-family: var(--wtf-font-heading) !important; }
.wtf-font-accent { font-family: var(--wtf-font-accent) !important; }

/* --- Clases de tamaño de fuente --- */
.wtf-text-xs { font-size: var(--wtf-text-xs) !important; }
.wtf-text-sm { font-size: var(--wtf-text-sm) !important; }
.wtf-text-base { font-size: var(--wtf-text-base) !important; }
.wtf-text-lg { font-size: var(--wtf-text-lg) !important; }
.wtf-text-xl { font-size: var(--wtf-text-xl) !important; }
.wtf-text-2xl { font-size: var(--wtf-text-2xl) !important; }
.wtf-text-3xl { font-size: var(--wtf-text-3xl) !important; }
.wtf-text-4xl { font-size: var(--wtf-text-4xl) !important; }
.wtf-text-5xl { font-size: var(--wtf-text-5xl) !important; }

/* --- Combinaciones frecuentes --- */
.wtf-heading { font-family: var(--wtf-font-heading); font-weight: 800; color: var(--wtf-white); }
.wtf-body-text { font-family: var(--wtf-font-body); color: var(--wtf-body); }
.wtf-body-muted-text { font-family: var(--wtf-font-body); color: var(--wtf-body-muted); }
.wtf-link { color: var(--wtf-primary); transition: color 0.3s ease; }
.wtf-link:hover { color: var(--wtf-secondary); }
.wtf-btn-primary { background-color: var(--wtf-primary); color: var(--wtf-white); }
.wtf-btn-primary:hover { background-color: var(--wtf-secondary); color: var(--wtf-black); }
.wtf-btn-secondary { background-color: var(--wtf-secondary); color: var(--wtf-black); }
.wtf-btn-secondary:hover { background-color: var(--wtf-primary); color: var(--wtf-white); }

/* ==========================================================================
   COMPONENTES Y LAYOUT
   ========================================================================== */

/* Navbar alignment */
#navbar .container > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
#navbar .container > div > div:last-of-type {
    margin-left: auto;
}

/* Packages - separación entre paquetes */
.packages-grid {
    gap: 2rem !important;
}

/* Package cards: separación imagen–texto y bullet points */
.wtf-package-content {
    display: flex;
    flex-direction: column;
}

/* Separación entre imagen y caja de texto */
.packages-grid img {
    display: block;
}

/* Separación entre título/subtitle y bullet points */
.wtf-package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wtf-package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--wtf-body);
    margin-bottom: 10px;
}

.wtf-package-features li:last-child {
    margin-bottom: 0;
}

.wtf-package-features .flaticon-check-mark {
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Separación entre bullet points y checkbox (label ya tiene mt-[25px] en HTML) */
@media (min-width: 48rem) {
    .packages-grid {
        gap: 2.5rem !important;
    }
}
@media (min-width: 80rem) {
    .packages-grid {
        gap: 3rem !important;
    }
}

/* Package content - ancho 300px en xl */
@media (min-width: 80rem) {
    .xl\:max-w-\[280px\] {
        max-width: 300px !important;
    }
}

/* ==========================================================================
   FAQ - Estilo tipo paquetes $450 (activo) / $250 (inactivo)
   ========================================================================== */

/* Estado inactivo (cerrado) - como paquete Basic $250 */
.wtf-faq-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wtf-faq-item:hover {
    border-color: rgba(211, 11, 11, 0.25);
    box-shadow: 0 0 20px rgba(211, 11, 11, 0.08);
}

/* Estado activo (expandido) - como paquete Medium $450 */
.wtf-faq-item.active {
    background: linear-gradient(180deg, rgba(211, 11, 11, 0.12) 0%, rgba(255, 255, 255, 0.06) 50%);
    border: 1px solid rgba(211, 11, 11, 0.5);
    box-shadow: 0 0 35px rgba(211, 11, 11, 0.2), 0 0 60px rgba(211, 11, 11, 0.08);
}

.wtf-faq-item.active .accordion-toggle {
    color: var(--wtf-primary);
}

.wtf-faq-item.active .accordion-toggle .ri-arrow-down-s-fill {
    color: var(--wtf-primary);
}

.wtf-faq-item .accordion-panel p {
    color: var(--wtf-body);
}

/* FAQ: separación clara entre columnas */
.wtf-faq-accordion {
    column-gap: 80px !important;
}
@media (min-width: 1024px) {
    .wtf-faq-accordion {
        column-gap: 100px !important;
    }
}

/* Sin borde entre columnas para mejor separación visual */
.wtf-faq-accordion .wtf-faq-col {
    border: none !important;
}

/* Icono vector (barra+triángulo) - contenedor circular */
.wtf-vector-icon {
    background: rgba(211, 11, 11, 0.15);
    border: 1px solid rgba(211, 11, 11, 0.3);
}

/* ==========================================================================
   FLEXIBLE PRICING SECTION
   ========================================================================== */

.wtf-pricing-section {
    background-color: var(--wtf-navy-black);
}

.wtf-pricing-title {
    font-family: var(--wtf-font-heading);
}

/* Pricing cards grid */
.wtf-pricing-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Separación entre texto introductorio y primeros paquetes */
#memberships .wtf-pricing-grid {
    padding-top: 35px !important;
    margin-top: 25px !important;
}

#memberships .wtf-intro-margin {
    margin-bottom: 55px !important;
}

@media (min-width: 768px) {
    #memberships .wtf-pricing-grid {
        padding-top: 40px !important;
        margin-top: 30px !important;
    }
    #memberships .wtf-intro-margin {
        margin-bottom: 70px !important;
    }
}

@media (min-width: 1024px) {
    #memberships .wtf-pricing-grid {
        padding-top: 50px !important;
        margin-top: 40px !important;
    }
    #memberships .wtf-intro-margin {
        margin-bottom: 85px !important;
    }
}

/* Card base */
.wtf-pricing-card {
    position: relative;
}

.wtf-pricing-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.wtf-pricing-card:hover .wtf-pricing-card-inner {
    border-color: rgba(211, 11, 11, 0.4);
    box-shadow: 0 0 30px rgba(211, 11, 11, 0.1);
}

/* Featured card - centered, slightly larger */
.wtf-pricing-card-featured {
    order: 0;
}

@media (min-width: 768px) {
    .wtf-pricing-card-featured {
        order: 0;
        transform: scale(1.05);
    }

    .wtf-pricing-card-featured .wtf-pricing-card-inner {
        background: linear-gradient(180deg, rgba(211, 11, 11, 0.15) 0%, rgba(255, 255, 255, 0.06) 50%);
        border-color: rgba(211, 11, 11, 0.35);
        box-shadow: 0 0 40px rgba(211, 11, 11, 0.15);
        min-height: 420px;
        padding-bottom: 36px;
    }

    .wtf-pricing-card-featured:hover .wtf-pricing-card-inner {
        box-shadow: 0 0 50px rgba(211, 11, 11, 0.2);
    }

    /* V2 featured: taller, icon floats higher */
    .wtf-pricing-v2 .wtf-pricing-card-featured .wtf-pricing-card-inner {
        min-height: 440px;
        padding-top: 48px;
    }

    .wtf-pricing-v2 .wtf-pricing-card-featured .wtf-pricing-icon-v2 {
        top: -32px;
        width: 64px;
        height: 64px;
    }

    .wtf-pricing-v2 .wtf-pricing-card-featured .wtf-icon-triangle .wtf-icon-inner {
        border-left-width: 12px;
        border-right-width: 12px;
        border-bottom-width: 22px;
    }

    /* Premium section: 2 columnas, featured sin scale para no solaparse */
    #wtf-pricing-premium .wtf-pricing-card-featured {
        transform: none;
    }

    #wtf-pricing-premium .wtf-pricing-card-featured .wtf-pricing-card-inner {
        min-height: auto;
    }
}

/* Icon with glow */
.wtf-pricing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--wtf-primary);
    color: var(--wtf-white);
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(211, 11, 11, 0.4);
}

.wtf-pricing-card-featured .wtf-pricing-icon {
    box-shadow: 0 0 25px rgba(211, 11, 11, 0.5);
}

/* Badge */
.wtf-pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--wtf-font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--wtf-primary);
    border: 1px solid var(--wtf-primary);
    border-radius: 9999px;
    margin-bottom: 16px;
}

/* Price */
.wtf-pricing-amount {
    margin-bottom: 8px;
}

.wtf-price-value {
    font-family: var(--wtf-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wtf-white);
    line-height: 1.2;
}

.wtf-price-featured {
    color: var(--wtf-primary);
}

.wtf-price-period {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wtf-body-muted);
    margin-left: 2px;
}

/* Description */
.wtf-pricing-desc {
    font-size: 0.9rem;
    color: var(--wtf-body-muted);
    margin-bottom: 24px;
}

/* Features list */
.wtf-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.wtf-pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--wtf-body);
    margin-bottom: 12px;
}

.wtf-pricing-features li:last-child {
    margin-bottom: 0;
}

.wtf-pricing-features .flaticon-check-mark {
    color: var(--wtf-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Button */
.wtf-pricing-btn {
    padding: 14px 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Botón cristal nevado (glassmorphism) - como referencia */
.wtf-btn-glass {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.wtf-btn-glass:hover {
    background: rgba(211, 11, 11, 0.2) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(211, 11, 11, 0.5) !important;
    color: #fff !important;
    text-shadow: 0 0 8px rgba(211, 11, 11, 0.5);
    box-shadow: 0 0 20px rgba(211, 11, 11, 0.15);
}

/* Footer text (featured card) */
.wtf-pricing-footer {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--wtf-body-muted);
    text-align: center;
}

/* ==========================================================================
   ALTERNATIVE PRICING (CORE / OVERDRIVE / TEAM)
   Icons: halfway above card top, centered, layered glow
   ========================================================================== */

/* Card: icon floats above top edge */
.wtf-card-icon-top .wtf-pricing-card-inner {
    position: relative;
    overflow: visible;
    padding-top: 44px;
}

/* Icon: centered, halfway protruding above card top */
.wtf-pricing-v2 .wtf-pricing-icon-v2 {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Layered glow: dark circular frame + soft halo */
.wtf-pricing-icon-v2::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(211, 11, 11, 0.2),
        0 0 25px rgba(211, 11, 11, 0.35),
        0 0 45px rgba(211, 11, 11, 0.15);
    z-index: -1;
}

/* Inner icon container - dark frame */
.wtf-pricing-icon-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(211, 11, 11, 0.4);
    z-index: 0;
}

.wtf-icon-inner {
    position: relative;
    z-index: 1;
}

/* CORE: Circle icon - inner dot */
.wtf-icon-circle .wtf-icon-inner {
    width: 14px;
    height: 14px;
    background: var(--wtf-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(211, 11, 11, 0.6);
}

/* OVERDRIVE: Triangle icon (featured) */
.wtf-icon-triangle .wtf-icon-inner {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid var(--wtf-primary);
    box-shadow: 0 0 12px rgba(211, 11, 11, 0.6);
}

.wtf-pricing-card-featured .wtf-pricing-icon-v2::before {
    box-shadow:
        0 0 0 1px rgba(211, 11, 11, 0.3),
        0 0 30px rgba(211, 11, 11, 0.45),
        0 0 55px rgba(211, 11, 11, 0.2);
}

/* TEAM: Hexagon icon */
.wtf-icon-hexagon .wtf-icon-inner {
    width: 24px;
    height: 20px;
    background: var(--wtf-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 10px rgba(211, 11, 11, 0.6);
}
