/* REKO Design System */
:root {
    --primary-color: #FF3B30;
    /* Vibrant Red/Orange similar to common sports apps */
    --primary-hover: #D63026;
    --secondary-color: #1C1C1E;
    /* Dark background */
    --text-dark: #1C1C1E;
    --text-light: #F2F2F7;
    --text-muted: #8E8E93;
    --background-light: #FFFFFF;
    --background-offset: #F2F2F7;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjusted to match navbar height exactly (84px) or tighter */
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 2rem;
}

.margin-right {
    margin-right: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--text-dark);
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    /* Changed from white to transparent */
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

.logo img {
    height: 52px;
    /* Increased from 38px */
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links a {
    font-weight: 500;
    color: white;
    /* Default to white for hero overlay */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Legibility */
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    /* Dark text when scrolled */
    text-shadow: none;
}

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.nav-cta-mobile {
    display: none;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    /* White hamburger on hero */
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-toggle span {
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 0;
    /* Remove padding so it starts at top */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    /* Ensure uppercase */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    font-style: italic;
    /* Added italic style */
}



/* About Section */
.section-about {
    padding: 3rem 0 5rem 0;
    /* Reduced top padding (was 6rem) */
    background-color: var(--background-light);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    /* Reduced margin */
}

.section-header .lead {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    /* Reduced from 4rem */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.problem-list li,
.solution-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.problem-list li::before {
    content: "✕";
    color: var(--text-muted);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.solution-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* App Flow */
.app-flow {
    text-align: center;
}

.app-flow h3 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    /* Allow horizontal scroll on mobile */
    padding-bottom: 1rem;
}

.step-card {
    background: var(--background-offset);
    padding: 2rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: white;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem auto;
}

.step-card h4 {
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Split Layouts (Athletes & Organizers) */
.section-athletes,
.section-organizers {
    padding: 5rem 0;
    overflow: hidden;
}

.section-athletes {
    background-color: var(--background-light);
}

.section-organizers {
    background-color: var(--secondary-color);
    color: white;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.reverse .split-content {
    order: -1;
    /* Keep content left on reverse normally, but we used split-image first in HTML */
    /* wait, HTML structure: image first for organizers. Let's fix semantics with grid order if needed */
}

/* Fix CSS Grid order logic or trust HTML order.
   Athletes: Content, Image.
   Organizers: Image, Content.
   This works fine naturally.
*/

.split-content h2 {
    font-size: 2.8rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.section-organizers .split-content h2 {
    color: white;
}

.section-organizers .text-muted {
    color: #a1a1aa;
}

.badge {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-dark {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
}

.feature-list {
    margin: 2rem 0;
}

.feature h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.section-organizers p {
    color: #d1d1d6;
}

.split-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.organizer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Testimonials */
.section-testimonials {
    padding: 6rem 0;
    background-color: var(--background-offset);
}

.testimonial-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    padding: 0 40px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide .quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.testimonial-slide .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-slide .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through except on buttons */
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    pointer-events: all;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary-color);
    color: white;
}

/* Contact */
.section-contact {
    padding: 6rem 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    margin: 2rem 0;
    font-size: 1.1rem;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-form-container {
    background: var(--background-offset);
    padding: 2.5rem;
    border-radius: var(--radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: #a1a1aa;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #52525b;
    font-size: 0.9rem;
}

/* Animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.reveal-delay-1.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.reveal-delay-2.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .split-layout {
        gap: 2rem;
    }

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

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Active State would need JS toggling a class on navbar */
    .navbar.active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 0.75rem;
    }

    .navbar.active .nav-links a {
        color: white;
    }

    .navbar.active .nav-cta {
        display: inline-block;
        margin-top: 1rem;
    }

    .navbar.active .nav-actions {
        display: none;
    }

    .navbar.active .nav-links .nav-cta-mobile {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    .navbar.active .nav-links .nav-cta-mobile + .nav-cta-mobile {
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-grid,
    .split-layout,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .split-layout.reverse .split-content {
        order: 1;
    }

    /* Fix order for organizers on mobile text first */
    .section-organizers .split-layout {
        display: flex;
        flex-direction: column-reverse;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ... existing code ... */

.solution-image {
    margin-top: 2rem;
}

.solution-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.solution-image img:hover {
    transform: scale(1.02);
}

/* ... existing code ... */
/* Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.problem-column h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.problem-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.problem-list li::before {
    top: 2px;
    /* Adjust alignment of 'x' or bullet */
}

/* Solution Block */
.solution-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.solution-block.reverse {
    flex-direction: row-reverse;
}

.solution-content {
    flex: 1;
}

.solution-media {
    flex: 1;
    position: relative;
}

.solution-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.solution-media img:hover {
    transform: scale(1.02);
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.caption {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

.microcopy {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 2rem;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .solution-block,
    .solution-block.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
        /* Keep text aligned left or center if preferred */
    }

    .solution-media {
        width: 100%;
    }
}

/* Improved Problems Section Aesthetics */
.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.problem-column {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.problem-column:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
}

.problem-column h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    font-weight: 800;
}

.problem-list li {
    font-size: 1rem;
    color: #4a4a4a;
    margin-bottom: 1.2rem;
    padding-left: 20px;
}

.problem-list li strong {
    color: var(--text-dark);
    display: block;
    /* Make title separate line? or inline? Inline feels better for conciseness */
    font-weight: 700;
}

.problem-list li::before {
    content: "✕";
    color: var(--primary-color);
    /* Red 'x' might be too much, maybe grey or primary? */
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
    font-size: 0.9em;
}

/* Cleaner Solution Lists */
.solution-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.solution-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 900;
}

.solution-list li strong {
    color: var(--text-dark);
}

/* Founders Section */
.section-founders {
    padding: 6rem 0;
    background-color: white;
    /* Clean white background */
}

.section-founders .split-layout {
    align-items: center;
    /* Center vertically */
    gap: 5rem;
    /* More space between text and image */
}

.founders-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4a4a4a;
}

.brand-signature {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2rem;
    letter-spacing: -0.5px;
}

.section-founders .split-image img {
    max-width: 80%;
    /* Reduced from 100% to fit better */
    margin: 0 auto;
    display: block;
    box-shadow: none;
}

@media (max-width: 768px) {
    .section-founders .split-layout {
        flex-direction: column;
        gap: 3rem;
    }
}/* Founders Gallery */
.founders-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.founders-gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

.founders-gallery img:hover {
    transform: translateY(-5px);
}

@media (max-width: 600px) {
    .founders-gallery {
        grid-template-columns: 1fr;
        /* Stack on mobile if needed, though side-by-side usually fits for avatars */
        gap: 1rem;
    }
}/* Founders Gallery & Cards */
.founders-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-end;
    /* Align bottom to handle potential height diffs */
}

.founder-card {
    text-align: center;
}

.founder-card img {
    max-width: 100%;
    height: auto;
    /* Remove border radius if they are cutouts, or keep it if user wants a card look. 
       User said "Modifica la imagen... sustituyela por estas dos". 
       The images provided are cutouts (transparent bg likely). 
       Let's remove border-radius and shadow to look clean, or perhaps add a subtle bg circle?
       For now, clean cutout style looks best with the website aesthetic. */
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 1rem;
    max-height: 300px;
    /* Limit height so they don't dominate */
    object-fit: contain;
}

.founder-info h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.founder-info p {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .founders-gallery {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}/* Social Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f2f2f7;
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
}

/* Final mobile fixes to prevent horizontal scroll */
@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-column {
        padding: 1.5rem;
    }
}
