/* =========================================
   VARIABLES & THEME
   ========================================= */
:root {
    /* Colors */
    --color-bg-body: #0a0a0a;
    /* Rich Black */
    --color-bg-card: #111111;
    /* Dark Gray */
    --color-bg-card-hover: #161616;

    --color-primary: #8a0000;
    /* Dark Red - Blood/Power */
    --color-primary-hover: #a10000;

    --color-text-main: #e5e5e5;
    /* Off-white */
    --color-text-muted: #a3a3a3;
    /* Neutral Gray */
    --color-border: #262626;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 6rem;
    /* 96px */

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 80px;
    /* Compensate for fixed header */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
    /* Mobile first, will increase on desktop */
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.text-highlight {
    color: var(--color-primary);
}

/* =========================================
   UTILITIES / LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    /* Mobile full width */
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 0, 0, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 0, 0, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

.btn-header {
    background-color: #8B0000;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-header:hover {
    background-color: #a10000;
    transform: translateY(-1px);
}

/* Pulse Animation */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 0, 0, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(138, 0, 0, 0);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(138, 0, 0, 0);
        transform: scale(1);
    }
}

.btn-pulse {
    animation: pulse-red 2s infinite;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3rem;
    }
}

/* HERO VISUAL (CSS ONLY) */
.hero-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #050505;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(138, 0, 0, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) inset;
    overflow: hidden;
}

.hero-visual::before {
    content: 'PROTOCOLO DE EJECUCIÓN';
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 5rem);
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.5rem;
    position: absolute;
    transform: rotate(-5deg);
    white-space: nowrap;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    box-shadow: 0 0 10px var(--color-primary);
}

/* =========================================
   SECTIONS SPECIFIC
   ========================================= */

/* HERO */
.hero {
    position: relative;
    padding: var(--spacing-lg) 0;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a0505 0%, var(--color-bg-body) 70%);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-text-main);
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-bullets {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.hero-bullet-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-bullet-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.price-anchor {
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* NIGHTMARE (PROBLEM) */
.nightmare {
    background-color: #0d0d0d;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.problem-list {
    margin: var(--spacing-md) 0;
    text-align: left;
    display: inline-block;
}

.problem-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    border-left: 2px solid var(--color-primary);
    padding-left: 1rem;
}

/* DREAM (SOLUTION) */
.dream {
    background: linear-gradient(180deg, var(--color-bg-body) 0%, #111111 100%);
}

.dream-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: var(--spacing-sm);
    display: block;
}

/* PRESENTATION */
.presentation {
    background-color: #111;
}

.step-card {
    background: var(--color-bg-card);
    padding: var(--spacing-sm);
    border-left: 1px solid var(--color-border);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* SECRET SAUCE */
.secret-sauce {
    background: #0a0a0a;
    border-top: 1px solid var(--color-border);
}

.comparison-box {
    border: 1px solid var(--color-primary);
    padding: var(--spacing-sm);
    display: inline-block;
    color: #fff;
    margin-top: var(--spacing-md);
}

/* BENEFITS (FAB) */
.benefits {
    background: radial-gradient(circle at center, #1b0a0a 0%, #000 80%);
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-sm);
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* SOCIAL PROOF */
.social-proof {
    background-color: #0f0f0f;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 600px) {
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
}

.testimonial-user {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.testimonial-loc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* =========================================
   PRICING (PREMIUM REDESIGN)
   ========================================= */
.pricing {
    background-color: var(--color-bg-body);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.pricing .grid {
    gap: 3rem;
    /* More distinct separation */
}

.pricing-card {
    background: linear-gradient(145deg, #161616, #0d0d0d);
    /* Deep glassmorphism feel */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle premium border */
    padding: 3rem 2rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover Effect: Lift & Glow */
.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ANIMATIONS */
@keyframes breathing-glow {
    0% {
        box-shadow: 0 0 30px rgba(138, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 50px rgba(138, 0, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 30px rgba(138, 0, 0, 0.1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* POPULAR CARD VARIANT */
.pricing-card.popular {
    background: linear-gradient(145deg, #1c0505, #0d0d0d);
    border: 1px solid rgba(138, 0, 0, 0.4);
    box-shadow: 0 0 30px rgba(138, 0, 0, 0.1);
    z-index: 2;
    transform: scale(1.02);
    animation: breathing-glow 4s infinite ease-in-out;
}

.pricing-card.popular:hover {
    box-shadow: 0 0 60px rgba(138, 0, 0, 0.4);
    border-color: var(--color-primary);
    transform: translateY(-8px) scale(1.02);
    animation: none;
    /* Pause breathing on hover for stability */
}

/* BADGE */
.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 8px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    /* For shine effect */
}

.badge-popular::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

/* TITLE & PRICE */
.pricing-card h3 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.pricing-card.popular h3 {
    color: #fff;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: #fff;
    margin: 1rem 0 2rem;
    line-height: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.price-display span {
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

/* FEATURES LIST */
.features-list {
    text-align: left;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    /* Pushes button to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.features-list li {
    margin-bottom: 0.85rem;
    padding-left: 1.75rem;
    position: relative;
    color: #aaa;
    line-height: 1.4;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.features-list li.highlight {
    color: #fff;
    font-weight: 600;
}

/* MODAL & FOOTER (Restored) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #111;
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.3s ease-out, breathing-border 4s infinite;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes breathing-border {
    0% {
        border-color: var(--color-border);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    }

    50% {
        border-color: var(--color-primary);
        box-shadow: 0 20px 60px rgba(138, 0, 0, 0.3);
    }

    100% {
        border-color: var(--color-border);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-content ul li {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.modal-content ul li:nth-child(1) {
    animation-delay: 0.3s;
}

.modal-content ul li:nth-child(2) {
    animation-delay: 0.5s;
}

.modal-content ul li:nth-child(3) {
    animation-delay: 0.7s;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.modal-close:hover {
    color: #fff;
}

.guarantee {
    border-top: 1px solid var(--color-border);
    background: #0d0d0d;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #111;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--color-primary);
    background: #140a0a;
}

.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.faq-icon {
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-content {
    padding: 1.5rem;
    padding-top: 0;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

footer {
    padding: 4rem 0;
    background: #000;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}