/* Variables CSS para temas */
:root {
    /* Colores principales */
    --primary-color: #0056d2;
    --secondary-color: #0056D2;
    --accent-color: #FFD700;
    --strong-color: #ff133a;

    /* Colores de fondo */
    --bg-primary: #0e0e0e;
    --bg-secondary: #161616;

    --bg-section-dark: #dddddd;
    --bg-section-light: #FFFFFF;

    --bg-footer: #0f6cee;

    /* Colores de texto */
    --text-primary: #ffffff;
    --text-secondary: #2b2b2b;

    /* Colores de bordes */
    --border-color: #404040;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);

    /* Transiciones */
    --transition-speed: 0.3s;
    --nav-height: 70px;

    --scroll-margin-top: 3rem !important;

}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'helvetica_lt_stdCnOb', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    scroll-behavior: smooth;
    font-size: 20px;
}

a, a:link, a:visited {
    text-decoration: none;
    color: var(--strong-color);
    transition: color var(--transition-speed);
}

/* Menú fijo */
.nav-fixed {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--nav-height);
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

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

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




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

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-speed);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-speed);
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: var(--bg-primary);
        width: 300px;
        height: 100vh;
        padding: .9rem;
        transition: right var(--transition-speed);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        gap: 1rem;
        z-index: 1001;
    }

    .nav-menu li {
        border-bottom: 1px solid #304c863b;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
    }

    .nav-menu.active {
        right: 0;
    }

    

    body.menu-open::before {
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}


.bold,
strong {
    font-family: 'helvetica_lt_stdbold_oblique';
}

.font-size-2 {
    font-size: 110%;
}

.font-size-3 {
    font-size: 120%;
}

/* Theme Switch */
.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-switch button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

.theme-switch button:hover {
    transform: scale(1.1);
}

/* Header */
#inicio {
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
    display: flex;
}

#inicio::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160 C480,200 960,200 1440,160 L1440,320 L0,320 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {
    #inicio::after {
        height: 120px;
    }
}

@media (min-width: 768px) {
    #inicio::after {
        height: 150px;
    }
}

 

#inicio img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .header-grid {
        grid-template-columns: 50% 50%;
    }

}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 2rem;
}

.whey-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.whey-protein-logo {
    max-width: 70%;
    height: auto;
}

@media(min-width:700px) {
    .whey-protein-logo {
        max-width: 90%;
    }
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.usa-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-logo {
    width: 50%;
    display: block;
    margin: auto;
}

.radical-logo {
    max-width: 70%;
    height: auto;
}

.header-right {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-scale {
    transform: scale(1);
}

@media(min-width:1024px) {
    .img-scale {
        transform: scale(1.28);
    }
}

@media (max-width: 767px) {
    .nutritional-info h2 {
        color: white;
    }



    .whey-logo {
        gap: 0;
    }

    .radical-logo {
        max-width: 50%;
    }

    .header-left {
        padding: 2rem 1rem;
        align-items: center;
        text-align: center;
        order: 2;
    }

    .whey-logo {
        align-items: center;
    }

    .header-right {
        height: 50vh;
        position: relative;
        order: 1;
    }

    .hero-image {
        position: relative;
        height: 100%;
        width: 100%;
    }
}

/* Secciones */
/* Ajuste para el scroll del contenido */
section {
    scroll-margin-top: var(--scroll-margin-top);
}


section h2 {
    font-family: 'helvetica_lt_stdBlkCnOb';
    text-transform: uppercase;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -1.5px;
}

/* Quiénes somos */
.about-us {
    background-color: var(--bg-section-light);
    padding: 4rem 0;
    color: var(--text-secondary);
}

.about-content {
    padding: 2rem;
}

.about-us p {
    font-size: 1.1rem;
    line-height: 1.8;
  
}

.service-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-highlight h3 {
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-family: 'helvetica_lt_stdBlkCnOb';
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.about-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
        text-align: center;
    }

    .service-list li {
        text-align: left;
    }

    .about-image {
        padding: 1rem;
    }
}

/* Nuestras tiendas */
.stores {
    background-color: var(--bg-primary);
    padding: 4rem 0;
}

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

.store-card {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
}

.store-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.store-info {
    padding: 1.5rem;
}

.store-info h3 {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.store-info p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Categorías */
.categories {
    background-color: var(--bg-section-light);
    padding: 4rem 0;
}

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

.category-card {
    position: relative;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.category-card:hover .category-overlay h3 {
    transform: scale(1.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 1rem;
    text-align: center;
}

.category-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.315);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
}

.lightbox-close {
    position: absolute;
    top: 0rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

@media (max-width: 768px) {
    .stores-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .lightbox {
        padding: 1rem;
    }
}



/* Formulario de Contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

button[type="submit"],
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    text-decoration: none;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--bg-footer);
    padding: 1rem;
    text-align: center;
}

footer img {
    max-width: 150px;
    margin-bottom: 1rem;
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Clases de animación */
.slide-in-left {
    animation: slideInLeft var(--transition-speed) ease-out;
}

.slide-in-right {
    animation: slideInRight var(--transition-speed) ease-out;
}

.fade-in-up {
    animation: fadeInUp var(--transition-speed) ease-out;
}

.scale-in {
    animation: scaleIn var(--transition-speed) ease-out;
}

/* Optimizaciones de rendimiento */
.optimize-animation {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .optimize-animation {
        will-change: auto;
    }
}

/* Preferencia de usuario para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.text-white {
    color: white;
}


li {
    margin-bottom: 0rem !important;
}


/* media query only mobile */
@media(max-width:600px) {
    .conviction h2 {
        font-size: 1.7rem;
    }

    .hero-image {
        width: 100%;
    }


    .header-left {
        padding: 1rem;
    }

    .nav-logo img {
        height: 30px;
        width: auto;
    }
    
}

.strong-color {
    color: var(--strong-color);
    font-weight: bold;
}
 

@keyframes fade-blur {
    0% {
        opacity: 0;
        filter: blur(20px) brightness(2);
    }

    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
}

.fade-banner {
    animation: fade-blur 2s ease forwards;
}

