/* ==========================================================================
   MAZCUFIT - OFFICIAL PREMIUM STYLE SHEET
   Color Scheme: Dark High-Resistance Fitness Theme (Black, Dark Gray, Red & Beige)
   ========================================================================== */

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    /* Color Palette (Mazcufit Official Palette) */
    --color-bg-base: #000000;               /* Negro */
    --color-bg-deep: #000000;               /* Negro */
    --color-bg-surface: #1a1a1a;            /* Gris Oscuro */
    --color-bg-surface-hover: #262626;      /* Gris Oscuro Secundario */
    --color-border: #8b0000;                /* Rojo un poco más oscuro */
    --color-border-focus: #ff0000;          /* Rojo Principal */
    
    /* Brand Gradients */
    --gradient-accent: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    --gradient-accent-hover: linear-gradient(135deg, #ff3333 0%, #ff0000 100%);
    --gradient-surface: linear-gradient(145deg, #1a1a1a 0%, #121212 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #121212 100%);
    --gradient-text: linear-gradient(90deg, #ff6666 0%, #ff0000 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    
    /* Text Colors */
    --color-text-primary: #f5f5dc;          /* Beige / Veis (High legibility body text) */
    --color-text-secondary: #f4f1ea;        /* Beige Claro */
    --color-text-muted: #8c8c82;            /* Beige Apagado */
    --color-accent-pink: #ff0000;           /* Rojo Principal */
    --color-accent-orange: #ff6666;         /* Rojo Claro (Para destacados grandes) */
    --color-accent-dark-red: #8b0000;       /* Rojo Oscuro */
    
    /* Nutrient Colors */
    --color-prot: #ff3333; /* Red Protein */
    --color-carb: #f5f5dc; /* Beige Carb */
    --color-fat: #8b0000;  /* Dark Red Fat */
    
    /* Interface */
    --font-primary: 'Outfit', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.9);
    --shadow-accent: 0 8px 24px -6px rgba(255, 0, 0, 0.4);
    
    /* Container Widths */
    --container-width: 1200px;
    --header-height: 80px;
}

/* --- BASE STYLES & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

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

button, input, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- UTILITY & CENTER ALIGNMENT CLASSES --- */
.section-padding {
    padding: 100px 0;
}

.glass {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-premium);
}

.accent-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 16px auto 0 auto; /* Force strict center layout */
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* --- GLOBAL BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--color-border-focus);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent-orange);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

.btn-primary > * {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: var(--color-bg-surface-hover);
    border-color: var(--color-border-focus);
    transform: translateY(-2px);
}

.btn-navbar {
    padding: 8px 18px;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid var(--color-border-focus);
    color: var(--color-text-primary);
    border-radius: 50px;
}

.btn-navbar:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* --- STRICT CENTER ALIGNMENT FOR SECTION HEADERS --- */
.section-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Enforce screen axis center alignment */
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent-pink);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-accent-orange); /* Rojo Claro para títulos principales */
}

.section-intro {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-top: 16px;
}

/* ==========================================================================
   HEADER & NAVBAR STYLES (STICKY NAVBAR)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    background: rgba(0, 0, 0, 0.98);
}

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

/* Logo */
.logo-link {
    display: block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 0, 0.5));
}

.logo-icon {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 0, 0.5));
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border-focus);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--color-border-focus); /* Rojo Principal para enlaces activos */
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lang-btn {
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--color-text-primary);
}

.lang-divider {
    color: var(--color-border);
}

/* Cart Trigger */
.cart-trigger {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.cart-trigger:hover {
    background: var(--color-bg-surface-hover);
    color: var(--color-text-primary);
    border-color: var(--color-border-focus);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-border-focus);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-base);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-normal);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Menu open state */
.mobile-nav-toggle.open .hamburger {
    background: transparent;
}

.mobile-nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}


/* ==========================================================================
   SECTION: INITIAL / HOME (STRICT CENTER ALIGNMENT)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-deep);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, rgba(139, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center; /* Strict center text alignment */
    display: flex;
    flex-direction: column;
    align-items: center; /* Enforce Flex centering */
    justify-content: center;
    margin: 0 auto;
}

.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-logo-large {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 0, 0, 0.4));
    margin-bottom: 24px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--color-accent-orange); /* Rojo Claro */
    margin-top: -10px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto; /* Centers text block on axis */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center actions row */
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse-scroll {
    width: 28px;
    height: 48px;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    display: block;
    position: relative;
}

.mouse-scroll::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-border-focus);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    50% { top: 24px; opacity: 0; }
    100% { top: 8px; opacity: 0; }
}


/* ==========================================================================
   SECTION 1: QUIÉNES SOMOS (ABOUT)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-col {
    text-align: left;
}

.about-text-col h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-accent-orange);
    line-height: 1.3;
}

.about-text-col p {
    font-size: 1.05rem;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent-pink);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.about-cards-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Pilar Card */
.pilar-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    display: flex;
    gap: 20px;
    transition: var(--transition-normal);
}

.pilar-card:hover {
    border-color: var(--color-border-focus);
    background: var(--color-bg-surface-hover);
    transform: translateX(10px);
}

.pilar-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.pilar-card:hover .pilar-icon {
    background: var(--color-border-focus);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-accent);
}

.pilar-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-accent-orange);
}

.pilar-info p {
    font-size: 0.95rem;
    color: var(--color-text-primary);
}


/* ==========================================================================
   SECTION 2: FORMULARIO DE INGRESO (REGISTRO)
   ========================================================================== */
.join-section {
    background: var(--color-bg-base);
}

.join-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.join-card {
    padding: 50px;
    border-radius: var(--border-radius-lg);
}

.membership-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    background: #000000;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 14px 20px 14px 50px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.input-wrapper textarea {
    padding-left: 20px;
    resize: none;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Input Focus States */
.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.input-wrapper input:focus + .input-icon {
    color: var(--color-border-focus);
}

/* Validation States */
.form-group.invalid input { border-color: var(--color-border-focus); }
.form-group.valid input { border-color: #10b981; }

.error-msg {
    font-size: 0.8rem;
    color: var(--color-accent-pink);
    height: 16px;
    font-weight: 500;
}

/* Checkbox Style */
.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-border-focus);
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: none;
    cursor: pointer;
}

.inline-link {
    color: var(--color-border-focus);
    font-weight: 600;
}

.inline-link:hover {
    text-decoration: underline;
}

.btn-submit {
    height: 52px;
    margin-top: 12px;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s infinite linear;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login State active */
.login-state-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 4rem;
    color: #ff0000;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.4));
}

.login-state-panel h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-accent-orange);
}

.login-state-panel p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}


/* ==========================================================================
   SECTION 3: UBICACIÓN E INSTALACIONES (LOCATION)
   ========================================================================== */
.location-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

/* Map Styled */
.map-container {
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    height: 500px;
    border: 1px solid var(--color-border);
}

.styled-map {
    width: 100%;
    height: 100%;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    transition: var(--transition-slow);
}

.map-container:hover .styled-map {
    filter: grayscale(0.2) invert(0.9) contrast(1.1);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
}

.map-info-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    max-width: 380px;
    pointer-events: auto;
}

.map-info-card h5 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-border-focus);
}

.map-info-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.map-info-card p i {
    color: var(--color-border-focus);
    width: 16px;
    text-align: center;
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition-normal);
}

.gallery-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-border-focus);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.gallery-item-overlay h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-item:hover {
    border-color: var(--color-border-focus);
}


/* ==========================================================================
   SECTION 4: TIENDA (SHOP) & CART DRAWER
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-focus);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 5;
}

.product-badge.accent {
    background: var(--color-border-focus);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.product-card:hover .visual-placeholder {
    transform: scale(1.06);
}

.bottle-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.shirt-placeholder {
    background: linear-gradient(135deg, #2a0000 0%, #000000 100%);
}

.bag-placeholder {
    background: linear-gradient(135deg, #400000 0%, #000000 100%);
}

.icon-fallback {
    font-size: 5rem;
    color: var(--color-border);
    opacity: 0.25;
    margin-bottom: 12px;
}

.badge-item-logo {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 4px;
    opacity: 0.1;
    bottom: 20px;
}

/* Product Info */
.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-accent-orange);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-primary);
}


/* --- SHOPPING CART DRAWER (CLONED COMPONENT IN TIENDA) --- */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-left: 1px solid var(--color-border);
    z-index: 2000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-drawer-header h2 i {
    color: var(--color-border-focus);
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.cart-items-container {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
}

.cart-empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty-state p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.cart-item-img-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    text-align: left;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--color-border-focus);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #000000;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 2px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.qty-btn:hover {
    color: var(--color-text-primary);
}

.qty-val {
    width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.item-delete-btn {
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.item-delete-btn:hover {
    color: var(--color-border-focus);
}

.cart-drawer-footer {
    padding: 30px;
    border-top: 1px solid var(--color-border);
    background: #111111;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.btn-checkout {
    height: 50px;
}


/* ==========================================================================
   SECTION 5: MENÚS EQUILIBRADOS (NUTRITION)
   ========================================================================== */
.tabs-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.tabs-list {
    display: flex;
    background: #111111;
    border-bottom: 1px solid var(--color-border);
    padding: 10px;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.tab-btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: white;
    background: var(--gradient-accent);
    box-shadow: var(--shadow-accent);
}

.tabs-content {
    padding: 40px;
    background: var(--color-bg-surface);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.menu-item-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.menu-img-wrapper {
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.menu-img-wrapper:hover .menu-img {
    transform: scale(1.06);
}

.menu-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.menu-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent-orange);
    line-height: 1.25;
}

.calorie-badge {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-accent-pink);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.menu-desc {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Nutrients Breakdown */
.nutrients-breakdown h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.macro-bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.macro-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.macro-info span:first-child {
    color: var(--color-text-muted);
}

.macro-info span:last-child {
    color: var(--color-text-primary);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #000000;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
}

.fill-prot { background-color: var(--color-prot); }
.fill-carb { background-color: var(--color-carb); }
.fill-fat { background-color: var(--color-fat); }


/* ==========================================================================
   FOOTER SECTION (REPLICATED ACROSS 6 PAGES)
   ========================================================================== */
.footer {
    background: #000000;
    border-top: 1px solid var(--color-border);
    padding-top: 80px;
    text-align: left;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-about-col .logo {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--color-border-focus);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* Links Col */
.footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-border-focus);
    transform: translateX(4px);
}

/* Contact Col (WhatsApp & Gmail Buttons) */
.contact-prompt {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background: var(--gradient-accent);
    color: white;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Footer Bottom */
.footer-bottom {
    background: #000000;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 24px;
}

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


/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #1a1a1a;
    border-left: 4px solid var(--color-border-focus);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-premium);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    animation: slideInToast 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
    max-width: 350px;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--color-border-focus);
}

.toast-msg {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

@keyframes slideInToast {
    to { transform: translateX(0); }
}

.toast.toast-fadeout {
    animation: slideOutToast 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutToast {
    to { transform: translateX(120%); opacity: 0; }
}


/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE FIRST)
   ========================================================================== */

@media (max-width: 992px) {
    .section-padding { padding: 80px 0; }
    .section-title { font-size: 2.2rem; }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Location & Map Section */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-container { height: 400px; }

    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Nutrition Tabs */
    .menu-item-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .menu-img-wrapper { height: 260px; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-about-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Header & Burger Menu Navigation */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        border-left: 1px solid var(--color-border);
        padding: 100px 40px 40px 40px;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform var(--transition-normal);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .nav-menu.open {
        transform: translateX(0);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.9);
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.15rem;
        display: block;
    }

    .navbar-actions .btn-navbar {
        display: none; 
    }

    /* Hero Section centering */
    .hero-title { font-size: 3.2rem; letter-spacing: 4px; }
    .hero-slogan { font-size: 1.2rem; }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 12px;
    }
    .hero-actions .btn { width: 100%; }

    /* Join Form Grid */
    .membership-form .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .join-card {
        padding: 30px 20px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Nutrition Tabs List */
    .tabs-list {
        flex-direction: column;
        gap: 5px;
    }
    .tab-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    .tabs-content {
        padding: 24px 16px;
    }

    /* Footer Bottom */
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .footer-about-col {
        grid-column: span 1;
    }
}

/* --- REGISTRATION WALL OVERLAY (BLOQUEO INICIAL OBLIGATORIO) --- */
.reg-wall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a1a1a; /* Gris Oscuro Sólido */
    z-index: 999999; /* Superpone absolutamente todo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.reg-wall-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.reg-wall-card {
    width: 100%;
    max-width: 500px;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
    text-align: center;
}

.reg-wall-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.reg-wall-logo .hero-logo-large {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.reg-wall-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-accent-orange);
    letter-spacing: 4px;
}

.reg-wall-intro {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.reg-wall-card .form-group {
    margin-bottom: 18px;
}

.reg-wall-card .form-group input {
    background: #000000;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    color: var(--color-text-primary);
    width: 100%;
    transition: var(--transition-fast);
}

.reg-wall-card .form-group input:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.reg-wall-card .error-msg {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--color-accent-pink);
    text-align: left;
    height: auto;
}

