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

:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --green-600: #059669;
    --red-600: #DC2626;
    --yellow-500: #EAB308;
    --orange-500: #F97316;
    --purple-500: #8B5CF6;
    --blue-500: #3B82F6;
}
.logo-mobile
{
width: 50px;
height: 50px;
border-radius: 8px;

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    left: 0;
}

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

.hamburger::after {
    top: 8px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1762093805066-ca2afb453151?w=1920') center/cover;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

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

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Botones */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-terciary {
    background: rgba(14, 82, 207, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-terciary:hover {
    background: rgba(12, 76, 194, 0.445);
}

.btn-exercise {
    background: rgba(7, 93, 204, 0.658);
    color: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}
.btn-white {
    background: white;
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--gray-50);
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}

/* Secciones */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--gray-50);
}

.section-gradient {
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-description {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Tarjetas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

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

.card-content {
    padding: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.card-info {
    display: flex;
    gap: 16px;
    color: var(--gray-700);
    margin-bottom: 20px;
}

/* Productos */
.filters {
    margin-bottom: 40px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    margin-bottom: 12px;
    color: var(--gray-700);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-700);
}

.filter-btn:hover {
    background: var(--gray-200);
}

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

.products-count {
    color: var(--gray-600);
    margin-bottom: 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 280px;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.out-of-stock-badge {
    background: var(--red-600);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
}

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #FCD34D;
}

.rating-text {
    font-size: 14px;
    color: var(--gray-600);
}

.product-description {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

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

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Ejercicios */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.exercise-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.exercise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.exercise-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.exercise-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bg-yellow { background: var(--yellow-500); }
.bg-red { background: var(--red-600); }
.bg-blue { background: var(--blue-500); }
.bg-green { background: var(--green-600); }
.bg-purple { background: var(--purple-500); }
.bg-orange { background: var(--orange-500); }

.exercise-subtitle {
    font-size: 14px;
    color: var(--gray-600);
}

.exercise-list {
    list-style: none;
    margin-bottom: 20px;
}

.exercise-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-700);
}

.exercise-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-blue);
}

/* CTA */
.cta-box {
    background: var(--primary-blue);
    color: white;
    padding: 48px;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cta-box p {
    margin-bottom: 24px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 20px 30px;
}

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

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact li {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* Carrito */
.cart-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
    z-index: 900;
}

.cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--red-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.close-btn:hover {
    background: var(--gray-100);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-category {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.quantity-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
}

.quantity {
    min-width: 32px;
    text-align: center;
}

.cart-item-price {
    color: var(--primary-blue);
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--red-600);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-200);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.total-price {
    color: var(--primary-blue);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Consentimiento (full-screen antes de usar la web) */
.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
}

.consent-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.consent-modal.active {
    visibility: visible;
    opacity: 1;
}

.consent-modal-content {
    background: white;
    color: var(--gray-900);
    max-width: 720px;
    width: 100%;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    text-align: left;
}

.consent-modal-content h2 {
    margin-bottom: 8px;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 15px;
    color: var(--gray-700);
}

.consent-actions {
    margin-top: 18px;
}

body.consent-locked {
    overflow: hidden !important;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-header-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 32px;
}

.modal-body h2 {
    margin-bottom: 16px;
}

.modal-body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.modal-body p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.modal-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-600);
}

.video-container {
    aspect-ratio: 16/9;
    background: var(--gray-900);
    border-radius: 12px;
    margin: 20px 0;
}

/* Toast */
.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    background: var(--green-600);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

/* Formulario de Contacto */
#contacto.contact-section {
    background: var(--gray-50);
    padding: 80px 20px;
    margin-top: 0;
}

#contacto .contact-container {
    max-width: 600px;
    margin: 0 auto;
}

#contacto .contact-header {
    text-align: center;
    margin-bottom: 40px;
}

#contacto .contact-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

#contacto .contact-header p {
    color: var(--gray-600);
    font-size: 16px;
}

#contacto .contact-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#contacto .form-group {
    margin-bottom: 24px;
}

#contacto .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

#contacto .form-group input,
#contacto .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--gray-900);
    transition: all 0.3s;
}

#contacto .form-group input:focus,
#contacto .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contacto .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#contacto .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#contacto .form-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}



/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px;
    }

    .contact-form {
        padding: 24px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        flex: none;
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-grid,
    .products-grid,
    .exercise-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .modal-body {
        padding: 20px;
    }

    .cart-button {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}
