/* ════════════════════════════════ INFINITY — SOFT AURORA DESIGN Mesh gradient + glassmorphism + friendly modern ════════════════════════════════ */ :root { --bg: #fafaff; --bg-soft: #f5f3ff; --white: #ffffff; --ink: #1a1a2e; --ink-soft: #4a4a68; --ink-mute: #8b8ba7; --line: rgba(139, 92, 246, 0.4); --line-strong: rgba(139, 92, 246, 0.6); --violet: #a78bfa; --violet-deep: #8b5cf6; --pink: #f0abfc; --pink-deep: #e879f9; --cyan: #67e8f9; --cyan-deep: #22d3ee; --grad-primary: linear-gradient(135deg, #a78bfa 0%, #f0abfc 50%, #67e8f9 100%); --grad-soft: linear-gradient(135deg, rgba(167,139,250,0.12) 0%, rgba(240,171,252,0.12) 50%, rgba(103,232,249,0.12) 100%); --grad-text: linear-gradient(135deg, #8b5cf6 0%, #e879f9 50%, #22d3ee 100%); --shadow-sm: 0 4px 14px rgba(167, 139, 250, 0.16); --shadow-md: 0 10px 40px rgba(167, 139, 250, 0.22); --shadow-lg: 0 20px 60px rgba(167, 139, 250, 0.28); --radius-sm: 12px; --radius-md: 20px; --radius-lg: 28px; --radius-pill: 999px; --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1); } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; } img { display: block; max-width: 100%; } button { font-family: inherit; } a { color: inherit; } /* ════════════════════════════════ MESH GRADIENT BACKGROUND ════════════════════════════════ */ .mesh-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; } .mesh-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; animation: float 22s ease-in-out infinite; } .mesh-blob-1 { width: 520px; height: 520px; background: var(--violet); top: -120px; left: -120px; } .mesh-blob-2 { width: 420px; height: 420px; background: var(--pink); top: 30%; right: -120px; animation-delay: -7s; } .mesh-blob-3 { width: 480px; height: 480px; background: var(--cyan); bottom: -140px; left: 25%; animation-delay: -14s; } @keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -50px) scale(1.1); } 66% { transform: translate(-40px, 40px) scale(0.92); } } /* ════════════════════════════════ NAVBAR ════════════════════════════════ */ .navbar { position: sticky; top: 18px; z-index: 100; padding: 0 20px; } .nav-container { max-width: 1200px; margin: 0 auto; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); padding: 10px 12px 10px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 24px rgba(167, 139, 250, 0.18); } .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; } .logo-symbol { font-size: 1.7rem; line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; } .logo-text { letter-spacing: -0.02em; } .nav-links { display: flex; gap: 30px; } .nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; transition: color var(--transition); position: relative; } .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad-primary); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--transition); } .nav-links a:hover { color: var(--violet-deep); } .nav-links a:hover::after { transform: scaleX(1); } .nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 10px; border-radius: 50%; transition: background var(--transition); } .nav-toggle:hover { background: var(--bg-soft); } .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); } /* ════════════════════════════════ HERO ════════════════════════════════ */ .hero { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 80px 20px 60px; text-align: center; position: relative; } .hero-content { max-width: 820px; animation: fadeInUp 0.8s ease-out both; } .hero-badge { display: inline-block; padding: 8px 18px; background: var(--white); border: 1px solid rgba(167, 139, 250, 0.3); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; color: var(--violet-deep); margin-bottom: 24px; box-shadow: var(--shadow-sm); } .hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; color: var(--ink); } .hero-title em { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; color: var(--violet-deep); } .hero-gradient-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 580px; margin: 0 auto 36px; line-height: 1.55; } .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; } /* ════════════════════════════════ BUTTONS ════════════════════════════════ */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: var(--radius-pill); font-family: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: none; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); white-space: nowrap; line-height: 1; } .btn-primary { background: var(--grad-primary); color: var(--white); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.25); } .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3); } .btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: 0 2px 8px rgba(167, 139, 250, 0.08); } .btn-ghost:hover { background: var(--bg-soft); border-color: var(--violet); color: var(--violet-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(167, 139, 250, 0.18); } /* ════════════════════════════════ SECTIONS / TYPOGRAPHY ════════════════════════════════ */ section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; } .section-header { margin-bottom: 40px; text-align: center; } .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; color: var(--ink); } .section-title em { font-family: 'DM Serif Display', serif; font-style: italic; font-weight: 400; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .section-subtitle { color: var(--ink-soft); font-size: 1.02rem; } /* ════════════════════════════════ CATEGORÍAS ════════════════════════════════ */ .categorias-section { padding-top: 40px; } .categorias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; } .cat-card { background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 30px 20px; text-align: center; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); box-shadow: var(--shadow-sm); animation: fadeInUp 0.6s ease-out backwards; } .cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--violet); } .cat-icon { font-size: 2.4rem; margin-bottom: 10px; display: block; line-height: 1; } .cat-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); } /* ════════════════════════════════ SEARCH ════════════════════════════════ */ .search-wrap { position: relative; max-width: 600px; margin: 0 auto 24px; background: var(--white); border-radius: var(--radius-pill); padding: 6px 6px 6px 22px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-md); border: 1.5px solid var(--line-strong); transition: box-shadow var(--transition), border-color var(--transition); } .search-wrap:focus-within { box-shadow: var(--shadow-lg); border-color: var(--violet); } .search-icon { color: var(--ink-mute); flex-shrink: 0; } .search-input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 0.95rem; color: var(--ink); outline: none; padding: 12px 0; min-width: 0; } .search-input::placeholder { color: var(--ink-mute); } .search-clear { background: var(--bg-soft); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--ink-soft); display: none; align-items: center; justify-content: center; font-size: 0.85rem; transition: background var(--transition), color var(--transition); flex-shrink: 0; } .search-clear:hover { background: var(--violet); color: var(--white); } /* ════════════════════════════════ FILTROS TAGS ════════════════════════════════ */ .filtros-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; } /* Multinivel: cada nivel es una fila independiente */ .filtros-nivel { width: 100%; margin-bottom: 14px; align-items: center; animation: filtrosFadeIn .25s ease; } .filtros-nivel:last-child { margin-bottom: 32px; } .filtros-nivel .filtros-nivel-label { color: var(--ink-mute); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; padding: 0 6px; } @keyframes filtrosFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .tag { padding: 8px 18px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all var(--transition); box-shadow: 0 2px 6px rgba(167, 139, 250, 0.06); display: inline-flex; align-items: center; gap: 6px; } .tag-icon { font-size: 1rem; line-height: 1; } .tag:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-1px); } .tag.active { background: var(--grad-primary); color: var(--white); border-color: transparent; box-shadow: var(--shadow-sm); } /* ════════════════════════════════ CONTADOR + PRODUCTOS ════════════════════════════════ */ .contador { text-align: center; color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 22px; font-weight: 500; } .productos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .producto-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); cursor: pointer; animation: fadeInUp 0.6s ease-out backwards; border: 1.5px solid var(--line-strong); display: flex; flex-direction: column; } .producto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--violet); } .producto-img { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--grad-soft); overflow: hidden; } .producto-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); } .producto-card:hover .producto-img img { transform: scale(1.06); } .producto-cat { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700; color: var(--violet-deep); letter-spacing: 0.04em; text-transform: uppercase; } .producto-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; } .producto-nombre { font-size: 1.02rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; } .producto-desc { font-size: 0.85rem; color: var(--ink-mute); line-height: 1.5; flex: 1; } .producto-precio { margin-top: 6px; font-size: 1.3rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; } /* ════════════════════════════════ EMPTY STATE ════════════════════════════════ */ .empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); } .empty-state p { font-size: 1.1rem; margin-bottom: 18px; } .error-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft); } .error-state p { font-size: 1.1rem; margin-bottom: 8px; } .error-detalle { color: var(--ink-mute); font-size: 0.85rem; margin-bottom: 20px; font-family: monospace; } /* ════════════════════════════════ FALLBACK DE IMAGEN Se muestra cuando la imagen del producto aún no existe ════════════════════════════════ */ .producto-fallback { display: none; font-size: 4rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)); animation: floatFallback 4s ease-in-out infinite; } .producto-img.img-fallback { display: flex; align-items: center; justify-content: center; background: var(--grad-soft); position: relative; } .producto-img.img-fallback::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255,255,255,0.4), transparent 50%); } .producto-img.img-fallback .producto-fallback { display: block; position: relative; z-index: 1; } @keyframes floatFallback { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.05); } } /* ════════════════════════════════ FOOTER ════════════════════════════════ */ .footer { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line); padding: 50px 20px 30px; margin-top: 80px; max-width: none; } .footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; } .footer-brand { display: flex; flex-direction: column; gap: 10px; } .footer-brand .logo { font-size: 1.2rem; } .footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 320px; } .footer-links { display: flex; flex-direction: column; gap: 10px; } .footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; transition: color var(--transition); width: fit-content; } .footer-links a:hover { color: var(--violet-deep); } .footer-copy p { color: var(--ink-mute); font-size: 0.85rem; line-height: 1.6; } /* ════════════════════════════════ ANIMATIONS ════════════════════════════════ */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } .mesh-blob { animation: none; } } /* ════════════════════════════════ RESPONSIVE ════════════════════════════════ */ @media (max-width: 768px) { .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--white); padding: 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); gap: 18px; border: 1px solid var(--line); } .nav-links.open { display: flex; } .nav-toggle { display: flex; } .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; } .footer-brand, .footer-links { align-items: center; } .footer-brand p { margin: 0 auto; } } @media (max-width: 900px) { .productos-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } } @media (max-width: 480px) { .nav-container { padding: 10px 10px 10px 20px; } .productos-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .producto-info { padding: 14px; } .producto-nombre { font-size: 0.9rem; } .producto-desc { font-size: 0.78rem; } .producto-precio { font-size: 1.05rem; } .cat-card { padding: 22px 14px; } .cat-icon { font-size: 2rem; } } /* ════════════════════════════════ CARRITO DE COMPRAS ════════════════════════════════ */ /* Botón flotante del carrito */ .cart-fab { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; } .cart-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55); } .cart-fab:active { transform: scale(0.95); } .cart-fab-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ef4444; color: #fff; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); } /* Modal genérico (compartido con carrito y pedido) */ .modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; } .modal.open { display: flex; } .modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px); } .modal-content { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); max-width: 520px; width: 90vw; max-height: 85vh; display: flex; flex-direction: column; animation: modalIn 0.25s ease-out; } @keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; } .modal-header h2 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: #1a1a2e; margin: 0; } .modal-close { background: none; border: none; font-size: 1.3rem; color: #8b8ba7; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: background 0.15s; } .modal-close:hover { background: #f3f0ff; color: #1a1a2e; } .modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; } .modal-footer { padding: 16px 24px 20px; border-top: 1px solid #e8e6f0; display: flex; flex-direction: column; gap: 12px; } /* Carrito — lista de items */ .cart-items { display: flex; flex-direction: column; gap: 10px; } .cart-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f8f7fc; border-radius: 10px; } .cart-item-info { flex: 1; min-width: 0; } .cart-item-name { font-size: 0.85rem; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cart-item-ref { font-size: 0.72rem; color: #8b8ba7; } .cart-item-controls { display: flex; align-items: center; gap: 6px; } .cart-item-qty-btn { width: 28px; height: 28px; border: 1px solid #d4d0e0; border-radius: 6px; background: #fff; color: #1a1a2e; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; } .cart-item-qty-btn:hover { background: #f3f0ff; } .cart-item-qty { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; min-width: 24px; text-align: center; } .cart-item-subtotal { font-size: 0.85rem; font-weight: 700; color: #8b5cf6; min-width: 70px; text-align: right; } .cart-item-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; padding: 4px; border-radius: 4px; transition: background 0.15s; } .cart-item-remove:hover { background: #fef2f2; } .cart-empty { text-align: center; color: #8b8ba7; padding: 32px 0; font-size: 0.95rem; } .cart-total { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; color: #1a1a2e; } .cart-total strong { font-size: 1.3rem; color: #8b5cf6; } .cart-actions { display: flex; gap: 10px; justify-content: flex-end; } /* Formulario de pedido */ .order-modal-content { max-width: 440px; } .form-group { margin-bottom: 14px; } .form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: #4a4a68; margin-bottom: 4px; } .form-group input { width: 100%; padding: 10px 14px; border: 1.5px solid #d4d0e0; border-radius: 10px; font-size: 0.9rem; font-family: 'Plus Jakarta Sans', sans-serif; color: #1a1a2e; background: #fafaff; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; } .form-group input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); } .form-error { color: #ef4444; font-size: 0.82rem; display: none; margin-bottom: 8px; } .form-error.show { display: block; } /* Botón "Agregar" en tarjetas de producto */ .producto-card-add { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e8e6f0; } .producto-card-add-qty { width: 48px; padding: 6px 8px; border: 1.5px solid #d4d0e0; border-radius: 8px; font-size: 0.82rem; font-weight: 600; text-align: center; font-family: 'Plus Jakarta Sans', sans-serif; color: #1a1a2e; background: #fff; transition: border-color 0.2s; box-sizing: border-box; } .producto-card-add-qty:focus { outline: none; border-color: #8b5cf6; } .producto-card-add-btn { flex: 1; padding: 7px 12px; border: none; border-radius: 8px; background: linear-gradient(135deg, #8b5cf6, #a78bfa); color: #fff; font-size: 0.78rem; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: opacity 0.2s, transform 0.15s; display: flex; align-items: center; justify-content: center; gap: 4px; } .producto-card-add-btn:hover { opacity: 0.9; transform: translateY(-1px); } .producto-card-add-btn:active { transform: scale(0.97); } /* Spinner en botones */ .btn-spinner { margin-left: 6px; } /* Responsive carrito */ @media (max-width: 480px) { .cart-fab { width: 52px; height: 52px; bottom: 20px; right: 20px; font-size: 1.3rem; } .modal-content { width: 95vw; border-radius: 12px; } .cart-item { flex-wrap: wrap; } .cart-actions { flex-direction: column; } .cart-actions .btn { width: 100%; justify-content: center; } }