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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ff6b35;
    --text-color: #ffffff;
    --accent-color: #f7931e;
    --light-bg: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    margin: 0;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-left: -120px;
    position: relative;
    z-index: 1001;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

/* TRAINER PANEL LINK - Discreto en el lado derecho */
.nav-trainer-link {
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 107, 53, 0.3);
}

.nav-link-trainer {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link-trainer:hover {
    color: var(--secondary-color);
    transform: scale(1.15);
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.8);
    transform-style: preserve-3d;
    transform-origin: center center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/trainer.png') center/cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform-style: preserve-3d;
    transform: translateZ(0);
    animation: float3d 5s ease-in-out infinite;
    opacity: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.4) 0%,
        rgba(255, 107, 53, 0.1) 50%,
        rgba(26, 26, 26, 0.4) 100%);
    z-index: 2;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-3deg) scale(1.05);
    }
    50% {
        transform: translateY(-40px) rotateX(10deg) rotateY(3deg) scale(1.08);
    }
    75% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-3deg) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* FEATURES SECTION */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    transform: translateY(-10px);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero {
        height: 50vh;
        margin-top: 80px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .features {
        margin: 2rem auto;
        padding: 2rem 1rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.9rem;
    }
}

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    border-top: 2px solid var(--secondary-color);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 700;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-links a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    border-radius: 50%;
    color: #000000 !important;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    transition: left 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
    color: #000000 !important;
}

.social-links a:hover::before {
    left: 0;
}

.footer-section p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-credits {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.footer-credits a {
    color: rgba(255, 107, 53, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.footer-credits a:hover {
    color: rgba(255, 107, 53, 1);
    border-bottom-color: rgba(255, 107, 53, 0.7);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* COOKIE BANNER */
.cookie-preference-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.98);
    border-top: 2px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    z-index: 10001; /* Higher than navbar and all other elements */
    display: flex;
    backdrop-filter: blur(5px);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%); /* Start hidden below screen */
    transition: all 0.4s ease-out;
    opacity: 0;
    pointer-events: none;
}

.cookie-preference-banner.show {
    transform: translateY(0); /* Slide up into view */
    opacity: 1;
    pointer-events: auto;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: var(--accent-color);
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    white-space: nowrap;
}

.cookie-banner-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-accept-cookies {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: #fff;
}

.btn-accept-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-reject-cookies {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-reject-cookies:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .cookie-preference-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-banner-text {
        font-size: 0.85rem;
    }

    .cookie-banner-buttons button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}