:root {
    --bg-dark: #050806;
    --vibrant-red: #ff003c;
    --vibrant-red-muted: rgba(255, 0, 60, 0.15);
    --text-white: #f5f5f5;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1200px;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    filter: contrast(120%) brightness(120%);
}

h1, h2, h3, .logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

/* Typography Helpers */
span {
    color: var(--vibrant-red);
}

.title-xl {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
}

.align-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background-color: var(--vibrant-red);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--vibrant-red-muted);
    filter: brightness(1.2);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--glass-border);
    transform: translateY(-5px);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--vibrant-red-muted);
    color: var(--vibrant-red);
    border: 1px solid var(--vibrant-red);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    background: rgba(5, 8, 6, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
}

.nav-links a:hover {
    color: var(--vibrant-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

/* Intro Section */
.intro-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 10rem;
    background: radial-gradient(circle at 50% 50%, #0a120d 0%, #050806 100%);
}

.hero-text {
    max-width: 800px;
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}


/* Calculator Section */
.calculator-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem 3rem;
    backdrop-filter: blur(10px);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-header label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.calc-header span {
    font-size: 1.25rem;
    color: var(--vibrant-red);
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vibrant-red);
    cursor: pointer;
    box-shadow: 0 0 15px var(--vibrant-red-muted);
    transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--vibrant-red);
}

.calc-result {
    margin-top: 2rem;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: fadeIn 0.5s ease forwards;
}

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

.imc-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--vibrant-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--vibrant-red-muted);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.imc-value {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    line-height: 1;
}

.imc-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.result-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--vibrant-red);
    transition: var(--transition-fast);
}

.result-message p {
    color: var(--text-white);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .calc-result {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .calculator-container {
        padding: 2rem 1.5rem;
    }
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.problem-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-smooth);
}

.problem-card:hover {
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.02);
}

.problem-card .icon {
    font-size: 2rem;
    color: #ff4d4d;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-gray);
}

/* Method Section */
.method-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    max-width: 600px;
}

.step:nth-child(even) {
    flex-direction: column;
}

.step-number {
    font-size: 6rem;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--glass-border);
    line-height: 1;
}

.step:hover .step-number {
    -webkit-text-stroke: 1px var(--vibrant-red);
    text-shadow: 0 0 30px var(--vibrant-red-muted);
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 500px;
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.objective-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 32px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background: #101512;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.objective-card:nth-child(1) .card-bg {
    background: linear-gradient(to top, #050806 0%, transparent 100%), url('assets/goal_perder_grasa.png') center/cover no-repeat;
}

.objective-card:nth-child(2) .card-bg {
    background: linear-gradient(to top, #050806 0%, transparent 100%), url('assets/goal_perder_peso.png') center/cover no-repeat;
}

.objective-card:nth-child(3) .card-bg {
    background: linear-gradient(to top, #050806 0%, transparent 100%), url('assets/goal_gain_muscle_v3.png') center/cover no-repeat;
}

.objective-card:nth-child(4) .card-bg {
    background: linear-gradient(to top, #050806 0%, transparent 100%), url('assets/goal_sports_performance.png') center/cover no-repeat;
}

.objective-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.objective-card:hover .card-bg {
    opacity: 0.9;
    transform: scale(1.05);
}

.objective-card .card-content {
    position: relative;
    z-index: 2;
}

.objective-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.objective-card p {
    color: var(--text-gray);
}

.objective-card:hover {
    transform: translateY(-10px);
    border-color: var(--vibrant-red);
    box-shadow: 0 30px 60px rgba(255, 0, 60, 0.1);
}

.objective-card:hover h3 {
    color: var(--vibrant-red);
}

/* Results Section */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.results-features {
    margin-top: 2rem;
}

.results-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-features li::before {
    content: '✓';
    color: var(--vibrant-red);
    font-weight: bold;
}

.results-visual {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.dashboard-demo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.demo-card span {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: block;
    margin-bottom: 0.5rem;
}

.demo-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: var(--vibrant-red);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--vibrant-red);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.demo-card.mini {
    padding: 1rem;
}

.demo-card.mini .value {
    font-size: 1.1rem;
}

.demo-chart {
    background: rgba(255, 0, 60, 0.03);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--vibrant-red-muted);
}

.demo-chart svg {
    width: 100%;
    height: auto;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--vibrant-red);
    box-shadow: 0 20px 40px rgba(255, 0, 60, 0.05);
}

.testimonial-image-single {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.testimonial-image-single img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.testimonial-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.testimonial-content > p {
    font-size: 0.9rem;
    color: var(--vibrant-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonial-content .quote {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Form Section */
.modern-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 32px;
    backdrop-filter: blur(10px);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group option {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--vibrant-red);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: var(--vibrant-red-muted);
    color: var(--vibrant-red);
    border: 1px solid var(--vibrant-red);
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.camon-credit {
    font-size: 0.85rem;
}

.camon-credit a {
    color: var(--vibrant-red);
    font-weight: 600;
    transition: var(--transition-fast);
}

.camon-credit a:hover {
    color: var(--text-white);
}

.footer-links {
    display: flex;
    gap: 2rem;
}
/* Final CTA Section */
.cta-box {
    background: linear-gradient(145deg, rgba(20, 25, 20, 0.8), rgba(5, 8, 6, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cta-box h2, .cta-box p, .cta-box a {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box h2 span {
    color: #ccff00;
}

.cta-box p {
    margin: 0 auto 3rem auto;
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
}

.btn-onefit {
    background-color: #ccff00;
    color: #000;
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.2);
    font-weight: 700;
}

.btn-onefit:hover {
    background-color: #d4ff33;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.4);
    color: #000;
}

/* Theme Light (Alternating Sections) */
.theme-light {
    background-color: #f8f9fa;
    color: #050806;
}

.theme-light .title-lg, 
.theme-light .title-xl, 
.theme-light h2, 
.theme-light h3 {
    color: #050806;
}

.theme-light .subtitle, 
.theme-light p {
    color: #4b5563;
}

.theme-light .problem-card,
.theme-light .testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.theme-light .problem-card:hover,
.theme-light .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 60, 0.1);
}

.theme-light .icon {
    color: var(--vibrant-red);
}

.theme-light .testimonial-content h3 {
    color: #050806;
}

.theme-light .testimonial-content p {
    color: #4b5563;
}

.theme-light .testimonial-content .quote {
    color: #6b7280;
}

/* Scroll Text Section (Manifiesto) */
.scroll-text-section {
    background-color: #ffffff;
    color: #050806;
    height: 150vh;
    position: relative;
}

.sticky-text-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-reveal-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(to right, var(--vibrant-red) 0%, var(--vibrant-red) var(--scroll-perc, 0%), #e5e7eb var(--scroll-perc, 0%), #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scroll-reveal-text .outline {
    -webkit-text-stroke: 2px #e5e7eb;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(to right, var(--vibrant-red) 0%, var(--vibrant-red) var(--scroll-perc, 0%), transparent var(--scroll-perc, 0%), transparent 100%);
    -webkit-background-clip: text;
}


/* Animations */
[data-reveal] {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="fade-right"] { transform: translateX(-30px); }
[data-reveal="fade-left"] { transform: translateX(30px); }
[data-reveal="scale-up"] { transform: scale(0.95); }

[data-reveal].active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .results-layout {
        grid-template-columns: 1fr;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
    }
    
    .step-number {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .hero-text {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .modern-form {
        padding: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-visual {
        opacity: 0.4;
    }

    .frame-container {
        width: 60vh;
        height: 60vh;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-scroll-trigger {
        height: 100vh;
    }
    
    .sticky-container {
        position: relative;
    }
}
