/* ============================================
   AVANZAR - Premium E-commerce Styles
   ============================================ */

:root {
    --primary: #0065BD;
    --primary-dark: #00509A;
    --black: #000000;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --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;
    --success: #10B981;
    --error: #EF4444;
    --gold: #FFB800;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-900); background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; border: none; outline: none; }

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

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(20px); transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(0, 0, 0, 0.95); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: 6px; color: var(--primary) !important; position: relative; }
.logo::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--white); font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.2s; }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 8px; font-weight: 600; }
.btn-nav::after { display: none; }
.btn-nav:hover { background: var(--primary-dark); }
.cart-btn { position: relative; color: var(--white); padding: 8px; }
.cart-btn:hover { color: var(--primary); }
.cart-count { position: absolute; top: 0; right: 0; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: none; align-items: center; justify-content: center; }
.cart-count:not(:empty) { display: flex; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { width: 24px; height: 2px; background: var(--white); }

/* Cart Drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 1001; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--white); transform: translateX(100%); transition: transform 0.3s; z-index: 1002; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.cart-drawer.active { transform: translateX(0); }
.cart-header { padding: 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-size: 20px; font-weight: 700; }
.close-cart { color: var(--gray-500); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.cart-item { display: flex; gap: 16px; padding: 16px; background: var(--gray-50); border-radius: 12px; margin-bottom: 12px; }
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.qty-btn:hover { background: var(--gray-100); }
.qty-value { font-weight: 600; }
.remove-item { color: var(--gray-400); }
.remove-item:hover { color: var(--error); }
.cart-footer { padding: 24px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total span:first-child { font-size: 16px; color: var(--gray-600); }
.cart-total span:last-child { font-size: 24px; font-weight: 800; }
.checkout-btn { display: block; width: 100%; padding: 16px; background: var(--primary); color: var(--white); text-align: center; font-size: 16px; font-weight: 700; border-radius: 12px; }
.checkout-btn:hover { background: var(--primary-dark); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1a 100%); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(0, 101, 189, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(0, 101, 189, 0.1) 0%, transparent 40%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(0, 101, 189, 0.2); border: 1px solid var(--primary); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 100px; margin-bottom: 24px; }
.hero-title { font-size: clamp(40px, 5vw, 64px); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { font-size: 18px; color: var(--gray-400); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-price { margin-bottom: 32px; }
.price { font-size: 48px; font-weight: 800; color: var(--white); }
.price-label { display: block; font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.hero-buttons { margin-bottom: 32px; }
.btn-primary { display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px; background: var(--primary); color: var(--white); font-size: 16px; font-weight: 700; border-radius: 12px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 101, 189, 0.4); }
.hero-features { display: flex; gap: 24px; }
.hero-features .feature { display: flex; align-items: center; gap: 8px; color: var(--gray-500); font-size: 14px; }
.hero-features .feature svg { color: var(--success); }
.hero-image { display: flex; justify-content: center; }
.hero-image-container { position: relative; width: 100%; max-width: 450px; }
.hero-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; background: radial-gradient(circle, rgba(0, 101, 189, 0.3) 0%, transparent 60%); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.8; } }
.main-product { position: relative; width: 100%; border-radius: 24px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.hero-badge-floating { position: absolute; top: 20px; right: -20px; background: var(--primary); color: var(--white); padding: 16px 24px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-badge-floating span { font-size: 12px; font-weight: 500; text-transform: uppercase; }
.hero-badge-floating strong { font-size: 18px; font-weight: 800; }

/* Product */
.product { padding: 120px 0; background: #EEF2F6; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge { display: inline-block; padding: 8px 16px; background: rgba(0, 101, 189, 0.1); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 100px; margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

.combo-card { max-width: 420px; margin: 0 auto; background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%); border-radius: 24px; padding: 36px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 101, 189, 0.08); text-align: center; position: relative; overflow: hidden; }
.combo-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #0065BD, #0080ED, #0065BD); }
.combo-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0, 101, 189, 0.03) 0%, transparent 50%); pointer-events: none; }
.combo-badge { display: inline-block; background: linear-gradient(135deg, #0065BD 0%, #004A8F 100%); color: var(--white); font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 100px; margin-bottom: 24px; }
.combo-image { margin-bottom: 24px; }
.combo-image img { width: 100%; max-width: 280px; border-radius: 16px; margin: 0 auto; }
.combo-content { padding: 0 8px; }
.combo-title { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.combo-subtitle { font-size: 15px; color: var(--gray-500); margin-bottom: 24px; }
.combo-includes { text-align: left; margin-bottom: 24px; padding: 20px; background: #F8FAFC; border-radius: 12px; }
.combo-includes li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--gray-700); border-bottom: 1px solid #EEF2F6; }
.combo-includes li:last-child { border-bottom: none; }
.combo-includes li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.combo-includes li strong { color: var(--gray-900); }
.combo-price { margin-bottom: 24px; }
.price-amount { display: block; font-size: 42px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.price-note { font-size: 13px; color: var(--success); font-weight: 500; }
.combo-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px 32px; background: linear-gradient(135deg, #0065BD 0%, #004A8F 100%); color: var(--white); font-size: 17px; font-weight: 700; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 101, 189, 0.35); }
.combo-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 101, 189, 0.45); }

/* About */
.about { padding: 120px 0; background: var(--gray-900); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-content .section-badge { background: rgba(0, 101, 189, 0.2); color: var(--primary); }
.about-content .section-title { color: var(--white); margin-bottom: 24px; }
.about-text { color: var(--gray-400); font-size: 16px; line-height: 1.8; margin-bottom: 16px; }
.about-stats { display: flex; gap: 48px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--gray-800); }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--gray-500); }
.about-image-wrapper img { width: 100%; border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Testimonials */
.testimonials { padding: 120px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.testimonial-card { background: var(--gray-50); padding: 32px; border-radius: 20px; transition: all 0.3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.testimonial-stars { color: var(--gold); margin-bottom: 20px; font-size: 18px; letter-spacing: 2px; }
.testimonial-text { color: var(--gray-700); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.author-name { font-weight: 600; color: var(--gray-900); font-size: 14px; }
.author-location { font-size: 13px; color: var(--gray-500); }

/* Checkout */
.checkout-section { min-height: 100vh; background: linear-gradient(180deg, #EEF2F6 0%, #E2E8F0 100%); padding: 100px 0 80px; }
.checkout-container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.checkout-header { margin-bottom: 48px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-600); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.back-link:hover { color: var(--primary); }
.checkout-title { font-size: 32px; font-weight: 800; color: var(--gray-900); }
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

/* Card Preview */
.card-preview { margin-bottom: 32px; }
.card-preview-inner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 28px;
    min-height: 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-summary { 
    background: var(--white); 
    padding: 28px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    position: sticky; 
    top: 100px; 
}
.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e04d 50%, #d4af37 100%);
    border-radius: 8px;
    margin-bottom: 24px;
}
.card-number-preview {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .card-preview-inner { min-height: 180px; }
    .card-number-preview { font-size: 18px; }
    .order-summary { position: static; }
}
.card-details-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.card-label {
    display: block;
    font-size: 10px;
    color: var(--gray-400);
    margin-bottom: 4px;
    letter-spacing: 1px;
}
.card-name-preview, .card-expiry-preview {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
}

.checkout-form { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.form-section { margin-bottom: 32px; }
.form-section h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-section h3 svg { color: var(--primary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-group input { width: 100%; padding: 16px; font-size: 16px; border: 2px solid var(--gray-200); border-radius: 12px; transition: all 0.2s; background: var(--white); }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 101, 189, 0.1); }
.form-group input.error { border-color: var(--error); }
.form-group input.success { border-color: var(--success); }
.error-message { color: var(--error); font-size: 13px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn { width: 100%; padding: 20px; background: var(--primary); color: var(--white); font-size: 18px; font-weight: 700; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.submit-btn:hover:not(:disabled) { background: var(--primary-dark); }
.submit-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
.secure-badges { margin-top: 20px; display: flex; justify-content: center; gap: 16px; color: var(--gray-500); font-size: 13px; }
.order-summary { background: var(--white); padding: 32px; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); height: fit-content; position: sticky; top: 100px; }
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.summary-item { display: flex; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.summary-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
.summary-item-details { flex: 1; }
.summary-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.summary-item-qty { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.summary-item-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.summary-totals { display: flex; flex-direction: column; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.summary-row span:first-child { color: var(--gray-600); }
.summary-row.total { padding-top: 16px; border-top: 2px solid var(--gray-100); font-size: 20px; font-weight: 800; }
.summary-row.total span:last-child { color: var(--primary); }

/* Footer */
.footer { background: var(--black); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { display: inline-block; margin-bottom: 16px; font-size: 22px; font-weight: 800; letter-spacing: 6px; }
.footer-brand .logo::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.footer-brand p { color: var(--gray-500); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; background: var(--gray-800); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-links h4 { color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-links a { color: var(--gray-500); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--gray-800); text-align: center; }
.footer-bottom p { color: var(--gray-600); font-size: 14px; }

.spinner { width: 20px; height: 20px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-features { justify-content: center; }
    .hero-image { order: -1; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 36px; }
    .price { font-size: 36px; }
    .hero-buttons { flex-direction: column; }
    .combo-card { padding: 24px 20px; margin: 0 16px; }
    .combo-title { font-size: 22px; }
    .price-amount { font-size: 36px; }
    .about-stats { flex-direction: column; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
}