:root {
    --primary: #FF4E00;
    --primary-gradient: linear-gradient(135deg, #FF4E00 0%, #FF8A00 100%);
    --secondary: #0099FF;
    --dark: #0A0A0A;
    --dark-alt: #141414;
    --light: #F5F5F5;
    --gray: #888;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}

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

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(255, 78, 0, 0.3);
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 78, 0, 0.5);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('img/hero_runner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.5) 100%);
}

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

.hero h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero h1 .suma-svg {
    width: 350px;
    height: 100px;
    vertical-align: middle;
    margin-left: -5px;
    mix-blend-mode: screen; /* Clave: vuelve el relleno negro transparente respetando el trazo blanco */
}

.suma-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    fill: #000; /* Relleno negro que se volverá transparente por mix-blend-mode */
    stroke: var(--white);
    stroke-width: 4px; /* Doble grosor ya que el relleno cubrirá la mitad interior */
    paint-order: stroke fill; /* Clave 2: Trazo primero, relleno después para tapar artefactos internos */
    font-size: 88px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--light);
    max-width: 600px;
}

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

/* Section Common */
section {
    padding: 100px 0;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* About Section */
.about .grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px rgba(255, 78, 0, 0.2));
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-family: 'Outfit';
    font-weight: 900;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
}

/* Services Section */
.services {
    background: var(--dark-alt);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background: var(--glass);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.service-card:hover {
    background: var(--glass-border);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* Philosophy Section */
.philosophy {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('img/runners_bg.png') center/cover no-repeat;
    background-attachment: fixed;
}

.philosophy-content {
    background: rgba(10, 10, 10, 0.6);
    padding: 5rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.habit-item {
    position: relative;
}

.habit-icon {
    font-family: 'Outfit';
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--primary);
    position: absolute;
    top: -2.5rem;
    left: -1rem;
    opacity: 0.3;
}

.habit-item h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-card {
    background: var(--primary-gradient);
    padding: 5rem;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.contact-info {
    max-width: 500px;
}

.contact-info p {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand img {
    height: 30px;
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    color: var(--gray);
    font-size: 0.8rem;
}

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

    .about .grid,
    .services-grid,
    .habits-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .contact-links {
        align-items: center;
    }

    .contact-cta {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}