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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --light: #f9fafb;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Mejoras para touch en móviles */
button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Catalog Styles */
.catalog-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Para iOS Safari */
    position: relative;
}

/* Safe area para dispositivos con notch */
@supports (padding: max(0px)) {
    .catalog-page {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

.catalog-container {
    max-width: 100%;
    margin: 0 auto;
}

.catalog-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-backdrop-filter: blur(10px);
    /* Safe area para dispositivos con notch */
    padding-top: max(1rem, env(safe-area-inset-top));
}

@media (max-width: 768px) {
    .catalog-header {
        padding: 0.5rem 0;
        background: rgba(255, 255, 255, 0.98);
    }
}

.catalog-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .catalog-header .container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
}

/* Menú Hamburguesa para Móviles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-700);
    padding: 0.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.mobile-nav a:active {
    background: var(--gray-100);
    border-bottom-color: var(--primary);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    animation: fadeInDown 0.6s ease-out;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo img {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
    animation: fadeInDown 0.6s ease-out;
}

@media (max-width: 768px) {
    .logo img {
        max-height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 35px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
}

.main-nav {
    display: flex;
    gap: 2rem;
}

/* Ocultar navegación desktop en móviles */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important; /* Oculto porque usamos bottom nav */
    }
    
    .mobile-menu {
        display: none !important; /* Oculto porque usamos bottom nav */
    }
}

.main-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.catalog-main {
    padding: 2rem 0;
    padding-bottom: calc(2rem + 70px); /* Espacio para el menú inferior en móviles */
}

@media (max-width: 768px) {
    .catalog-main {
        padding: 1rem 0;
        padding-bottom: calc(1rem + 70px); /* Espacio para el menú inferior */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

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

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .category-card {
        padding: 1rem;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 0.75rem;
    }
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

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

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .category-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-card h3 {
        font-size: 0.875rem;
    }
}

.subcategories-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 120px;
    }
}

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

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

.placeholder-image {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .placeholder-image {
        font-size: 2.5rem;
    }
}

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

.product-info {
    padding: 1rem;
}

@media (max-width: 480px) {
    .product-info {
        padding: 0.75rem;
    }
}

.product-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .product-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-info h3 {
        font-size: 0.875rem;
    }
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .product-price {
        font-size: 1rem;
    }
}

.btn-view {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-view:hover,
.btn-view:active {
    background: var(--primary-dark);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .btn-view {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .btn-view {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.product-detail-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: var(--transition);
}

.product-detail-image img:hover {
    transform: scale(1.05);
}

.main-image-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.image-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .image-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .image-thumbnails .thumbnail {
        width: 50px;
        height: 50px;
    }
}

.image-thumbnails .thumbnail:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.1);
}

.image-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    border-width: 3px;
}

.placeholder-image-large {
    font-size: 6rem;
    text-align: center;
    padding: 3rem;
}

@media (max-width: 768px) {
    .placeholder-image-large {
        font-size: 4rem;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .placeholder-image-large {
        font-size: 3rem;
        padding: 1.5rem;
    }
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .product-description {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .product-price-large {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-price-large {
        font-size: 1.75rem;
    }
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.add-to-cart-form {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .add-to-cart-form {
        margin-top: 1rem;
    }
}

.quantity-selector {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .quantity-selector {
        margin-bottom: 0.75rem;
    }
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

@media (max-width: 480px) {
    .quantity-selector label {
        font-size: 0.875rem;
    }
}

.quantity-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 480px) {
    .quantity-input {
        width: 80px;
        padding: 0.5rem;
        font-size: 0.9375rem;
    }
}

.btn-add-cart {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-add-cart:hover,
.btn-add-cart:active {
    background: var(--primary-dark);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .btn-add-cart {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-add-cart {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.cart-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease-out;
}

@media (max-width: 768px) {
    .cart-modal-content {
        width: 98%;
        padding: 1rem;
        max-height: 95vh;
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .cart-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0;
    }
}

.cart-total {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: right;
    font-weight: 700;
}

@media (max-width: 768px) {
    .cart-total {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cart-total {
        font-size: 1.125rem;
        text-align: left;
    }
}

.checkout-options {
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .checkout-options {
        margin: 1rem 0;
    }
}

/* Option Cards */
.option-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    flex: 1;
}

.checkbox-icon {
    font-size: 1.125rem;
}

/* Delivery Section */
.delivery-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
}

.section-icon {
    font-size: 1.25rem;
}

.section-title {
    font-size: 1rem;
}

.delivery-type-selector {
    margin-bottom: 1.25rem;
}

.delivery-type-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #3b82f6;
    border-radius: var(--radius);
    background: var(--white);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.delivery-type-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.delivery-type-select:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15);
}

/* Delivery Option Panels */
.delivery-option-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1rem;
    border: 2px solid var(--gray-200);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.panel-icon {
    font-size: 1.25rem;
}

.panel-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.form-field-group {
    margin-bottom: 1rem;
}

.form-field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.9375rem;
    color: var(--gray-900);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.9375rem;
    color: var(--gray-900);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea::placeholder {
    color: var(--gray-400);
}

/* Pickup Info Card */
.pickup-info-card {
    margin-top: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: var(--radius);
    padding: 1rem;
    animation: slideDown 0.3s ease-out;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

.info-icon {
    font-size: 1.125rem;
}

.info-title {
    font-size: 0.9375rem;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
}

.info-value {
    font-size: 0.875rem;
    color: var(--gray-800);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .delivery-section {
        padding: 1rem;
    }
    
    .delivery-option-panel {
        padding: 1rem;
    }
    
    .section-header,
    .panel-header {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .option-card {
        padding: 0.875rem;
    }
    
    .checkbox-text {
        font-size: 0.875rem;
    }
    
    .delivery-section {
        padding: 0.875rem;
    }
    
    .delivery-option-panel {
        padding: 0.875rem;
    }
    
    .form-select,
    .form-textarea {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
}

.customer-info input,
.customer-info textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .customer-info input,
    .customer-info textarea {
        padding: 0.625rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .customer-info input,
    .customer-info textarea {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.btn-checkout:hover,
.btn-checkout:active {
    background: #059669;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .btn-checkout {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-checkout {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
}

.btn-close-cart {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gray-300);
    color: var(--gray-900);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.btn-close-cart:hover,
.btn-close-cart:active {
    background: var(--gray-400);
}

@media (max-width: 480px) {
    .btn-close-cart {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
.catalog-footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.back-link:hover,
.back-link:active {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .back-link {
        font-size: 0.875rem;
    }
}

/* Recipe Info */
.recipe-info {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .recipe-info {
        margin: 1rem 0;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .recipe-info {
        padding: 0.75rem;
    }
}

/* Product Detail Responsive */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .cart-modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .product-price-large {
        font-size: 1.75rem;
    }
}

/* Responsive Admin (mantener para compatibilidad) */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 0;
        overflow: hidden;
        transition: width 0.3s;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.recipe-info h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.recipe-ingredients {
    list-style: none;
}

.recipe-ingredients li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.recipe-ingredients li:last-child {
    border-bottom: none;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.pagination a:hover,
.pagination a:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pagination a,
    .pagination span {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .pagination a,
    .pagination span {
        padding: 0.25rem 0.5rem;
        font-size: 0.8125rem;
    }
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Menú Inferior (Bottom Navigation) - Estilo App Móvil */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none; /* Oculto por defecto, visible solo en móviles */
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding-top: 0.5rem;
    min-height: 60px;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
    max-width: 100px;
    min-width: 60px;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1;
}

.bottom-nav-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.15);
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

/* Mejorar accesibilidad táctil */
.bottom-nav-item {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    cursor: pointer;
}

.bottom-nav-item:active {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.5rem;
}

/* Ajustar footer para que no quede oculto */
.catalog-footer {
    margin-bottom: 70px;
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .catalog-footer {
        margin-bottom: calc(70px + env(safe-area-inset-bottom));
        padding: 1rem 0;
        font-size: 0.75rem;
    }
}

/* Ocultar menú hamburguesa en móviles cuando hay bottom nav */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Simplificar header en móviles */
@media (max-width: 768px) {
    .catalog-header {
        padding: 0.5rem 0 !important;
    }
    
    .catalog-header .logo {
        font-size: 0.875rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .catalog-header .logo img {
        max-height: 30px;
        max-width: 100px;
        object-fit: contain;
    }
    
    .search-input {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.5rem !important;
        border-width: 1px !important;
    }
    
    .catalog-header .container {
        flex-wrap: nowrap;
    }
    
    /* Ocultar elementos innecesarios en móviles */
    .back-link {
        display: none !important;
    }
}
