:root {
    /* Colores base estilo Runwise Light */
    --background-color: #F8F9FA; /* Casi blanco */
    --surface-color: #FFFFFF;
    --text-primary: #111827; /* Gris muy oscuro, casi negro */
    --text-secondary: #4B5563; /* Gris párrafo */
    --border-color: #E5E7EB;
    
    /* Acentos vibrantes */
    --primary-accent: #2563EB; /* Azul fuerte tech */
    --primary-hover: #1D4ED8;
    --accent-green: #10B981;
    --accent-teal: #0EA5E9;
    --accent-purple: #8B5CF6;
    
    /* Variables de diseño */
    --nav-height: 80px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================== TYPOGRAPHY ================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ================== UTILITIES ================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 120px 0; }
@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
}

.section-bg { background-color: var(--surface-color); }

/* ================== BUTTONS ================== */
a { text-decoration: none; color: inherit; }

.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px; /* Botones pill muy modernos */
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: #FFFFFF;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-large {
    padding: 12px 20px; /* Slightly more compact */
    font-size: 16px;
}

/* ================== NAVBAR ================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.nav-links a:hover {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        border-top: 1px solid var(--border-color);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }
}

/* ================== HERO SECTION ================== */
.hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 25px);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 750px; /* Increased to fit all buttons in a row */
    padding: 0;
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* ================== PLATFORM SWITCHER ================== */
.platform-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: #E5E7EB;
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
}

.glider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: white;
    border-radius: 999px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.switch-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.switch-btn.active {
    color: var(--primary-accent);
}

@media (max-width: 480px) {
    .switch-btn {
        padding: 10px 5px;
        font-size: 11px;
        gap: 4px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
    .platform-switcher {
        min-width: auto;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}

.platform-content {
    display: none;
    width: 100%;
    max-width: var(--container-max);
    padding: 20px 24px 10px;
    animation: fadeIn 0.4s ease;
}

.platform-content.active {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: flex-start;
    gap: 60px;
    padding-top: 40px; /* Un poco de respiro arriba */
}

@media (max-width: 992px) {
    .platform-content.active {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
}

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

/* ================== ANDROID CAROUSEL ================== */
.mySwiper {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

/* ================== ANDROID MODE DYNAMIC VIEW ================== */
.android-only-section {
    display: none;
    padding: 10px 24px 60px;
    background: radial-gradient(circle at top right, #f8fafc, #f1f5f9);
    position: relative;
    overflow: hidden;
}

body.android-mode .android-only-section {
    display: block;
}

body.android-mode #rest-of-page,
body.android-mode .trust-section {
    display: none;
}

.status-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
}

.status-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.status-text h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 800;
}

.status-text p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    max-width: 500px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    color: #475569;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* El footer permanece visible en ambos modos */

/* Efecto de transición suave para las secciones cuando vuelven a aparecer */
#rest-of-page, .trust-section {
    transition: opacity 0.5s ease;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-accent) !important;
    background: rgba(255,255,255,0.8);
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-accent) !important;
}



/* MOCKUP VISUAL */
.hero-image-wrapper {
    width: 100%;
    position: relative;
}

.hero-dashboard-mockup {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}
.hero-dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
}

.mockup-header {
    height: 48px;
    border-bottom: 1px solid var(--border-color);
    background: #F9FAFB;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.dots {
    display: flex;
    gap: 8px;
}
.dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #E5E7EB;
}
.dots span:nth-child(1) { background: #FF5F56; }
.dots span:nth-child(2) { background: #FFBD2E; }
.dots span:nth-child(3) { background: #27C93F; }

.mockup-body {
    padding: 40px;
    flex-grow: 1;
    background: #FAFAFA;
}
.mockup-placeholder {
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
}
.line-1 { width: 30%; height: 24px; }
.line-2 { width: 70%; height: 12px; opacity: 0.5; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    margin-top: 40px;
}
.card-grid .card {
    height: 120px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* ================== TRUST SECTION ================== */
.trust-section {
    padding: 40px 0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.trust-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.trust-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ================== FEATURES GRID (RUNWISE STYLE) ================== */
.features {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 60px;
    max-width: 600px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    border-color: var(--primary-accent);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.bg-blue { background: rgba(37, 99, 235, 0.1); color: var(--primary-accent); }
.bg-green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.bg-teal { background: rgba(14, 165, 233, 0.1); color: var(--accent-teal); }
.bg-purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.feature-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* ================== FOOTER ================== */
.footer {
    background: #111827;
    color: #F9FAFB;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #9CA3AF;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
    color: #D1D5DB;
    transition: var(--transition-fast);
}
.footer-col ul a:hover { color: #FFFFFF; }

.brand-col .logo { color: white; margin-bottom: 20px; }
.brand-col p { color: #9CA3AF; max-width: 300px; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* ================== ANIMATIONS (SCROLL REVEAL) ================== */
.fade-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }

/* ================== SECTION HEADER FLEX ================== */
.section-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.section-header-flex .section-title {
    margin-bottom: 0;
}

.logo-formula {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.formula-logo {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

.plus-sign {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-accent);
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .logo-formula {
        gap: 15px;
        padding: 10px 15px;
    }
    .formula-logo {
        max-width: 100px;
    }
}

/* ================== VIDEO OVERLAY & ANIMATIONS ================== */
.hero-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    transition: opacity 0.3s ease;
    pointer-events: auto; /* Explicitly clickable */
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-glow {
    width: 80px;
    height: 80px;
    background: #FFD700; /* Yellow gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: yellowPulse 2s infinite;
    margin-bottom: 15px;
}

.play-button-glow i {
    margin-left: 5px; /* Offset to center the play icon */
}

.play-text {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes yellowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
}
