:root {
    /* Color Palette based on Retrodex Games Logo */
    --bg-dark: #09131a; /* Slate Dark Midnight */
    --bg-darker: #060c11; /* Deep Slate Base */
    --bg-card: #10212d; /* Slate Navy, matches the game card background in logo */
    --bg-card-hover: #162c3b;
    --text-main: #f0f6fa;
    --text-muted: #849dae; /* Slate Gray from cartridge & controller in logo */
    --accent-primary: #218dae; /* Logo Teal Blue (RETRODEX) */
    --accent-secondary: #e9bc36; /* Logo Golden Yellow (GAMES & card border) */
    --accent-orange: #d46839; /* Logo Retro Orange (Pokéball top) */
    --accent-crimson: #c1446b; /* Logo Screwdriver Magenta */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --border-color: rgba(33, 141, 174, 0.22);
    --glow-shadow: 0 0 20px rgba(33, 141, 174, 0.45);
    --glow-gold: 0 0 20px rgba(233, 188, 54, 0.45);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(233, 188, 54, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    background: rgba(233, 188, 54, 0.12);
    color: var(--accent-secondary);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 19, 26, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-highlight {
    color: var(--accent-primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 50%, rgba(33, 141, 174, 0.18) 0%, rgba(6, 12, 17, 0) 55%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-badges-inline {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-badges-inline span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-badges-inline i {
    color: #fbbf24;
}

.hero-image-wrapper {
    position: relative;
}

.image-placeholder {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-align: center;
    padding: 20px;
}

.image-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--accent-secondary);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    z-index: -1;
    border-radius: 18px;
    filter: blur(15px);
    opacity: 0.5;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(233, 188, 54, 0.25);
}

.service-icon {
    font-size: 40px;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Trust Section --- */
.trust-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-dark);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-icon {
    font-size: 45px;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.trust-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact/CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(33, 141, 174, 0.15) 0%, rgba(6, 12, 17, 0) 50%);
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(33, 141, 174, 0.3);
}

/* --- Footer --- */
.footer {
    background-color: #050508;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

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

.footer-links ul li a:hover {
    color: var(--accent-primary);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .trust-badges-inline {
        justify-content: center;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-actions .btn-primary {
        display: none !important;
    }
    
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .logo-img {
        height: 60px !important;
        max-width: 190px !important;
    }
    
    .mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* --- Logo Styles --- */
.logo-img {
    height: 90px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu li a {
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    color: var(--accent-secondary);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-primary);
    color: var(--bg-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--glow-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
    color: white;
}

/* Image Zoom Animation on Hover */
.service-card img {
    transition: transform 0.4s ease;
}
.service-card:hover img {
    transform: scale(1.1);
}

.hero-badge {
    display: inline-block;
    background: rgba(33, 141, 174, 0.14);
    color: var(--accent-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(233, 188, 54, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(33, 141, 174, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(233, 188, 54, 0.65);
    }
    100% {
        box-shadow: 0 0 5px rgba(33, 141, 174, 0.3);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #152937;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Blink Text Animation */
@keyframes blinkText {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Floating WhatsApp Animation */
@keyframes pulseGlowWA {
    0% {
        box-shadow: 0 0 5px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(37, 211, 102, 0.4);
    }
}
.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Navbar Link Hover Underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: var(--glow-shadow);
}
.nav-link:hover::after {
    width: 100%;
}

/* --- Advanced Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Adjust padding for sections */
    section {
        padding: 60px 5%;
    }
    
    .hero-container {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Make cards fit better on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        min-height: auto;
    }
    
    /* Adjust Call To Action */
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-form-wrapper {
        padding: 25px 20px;
    }
    
    /* Newsletter section */
    .newsletter-section .container {
        padding: 30px 15px !important;
    }
    .newsletter-section h3 {
        font-size: 1.5rem !important;
    }
    
    /* Floating buttons adjustments for mobile */
    .floating-whatsapp {
        width: 50px !important;
        height: 50px !important;
        font-size: 30px !important;
        bottom: 20px !important;
        left: 20px !important;
    }
    
    .scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    /* Fix Mobile Menu Dropdowns */
    .nav-list {
        background: rgba(9, 19, 26, 0.98) !important;
        border-bottom: 2px solid var(--accent-primary);
    }
    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-primary);
        margin-left: 15px;
        width: 90%;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content {
        display: block;
    }
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: -400px; /* Hidden above */
        left: 0;
        width: 100%;
        background: rgba(9, 19, 26, 0.98);
        padding: 20px;
        gap: 15px;
        transition: top 0.4s ease;
        opacity: 0;
        z-index: -1;
    }
    .nav-list.active-mobile-menu {
        top: 80px; /* Show below header */
        opacity: 1;
    }
}

/* ===================================================
   CARRITO DE COMPRAS RETRODEX (SHOPPING CART)
   =================================================== */

/* Botón del Carrito en Navbar */
.cart-trigger-btn {
    position: relative;
    background: rgba(16, 33, 45, 0.85);
    border: 1px solid var(--border-color);
    color: var(--accent-secondary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-trigger-btn:hover {
    border-color: var(--accent-secondary);
    background: rgba(233, 188, 54, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(233, 188, 54, 0.3);
}

.cart-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-secondary);
    color: #060c11;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 0 8px rgba(233, 188, 54, 0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge-count.bounce {
    transform: scale(1.35);
}

/* Overlay & Drawer */
.cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 420px !important;
    max-width: 90vw !important;
    height: 100vh !important;
    background: #0b161f !important;
    border-left: 1px solid var(--border-color) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(100%) !important;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
    z-index: 10001 !important;
}

.cart-drawer.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (max-width: 600px) {
    .cart-drawer {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
    }
}

/* Floating Cart Trigger Button (Bottom Right) */
.floating-cart-btn {
    position: fixed;
    bottom: 105px;
    left: 30px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(33, 141, 174, 0.5);
    z-index: 999;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(233, 188, 54, 0.6);
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

/* Header Carrito */
.cart-header {
    padding: 22px 25px;
    background: rgba(16, 33, 45, 0.95);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.cart-close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Lista de Productos en Carrito */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-state {
    text-align: center;
    margin: auto 0;
    padding: 30px 15px;
    color: var(--text-muted);
}

.cart-empty-state i {
    font-size: 60px;
    color: var(--accent-primary);
    margin-bottom: 15px;
    opacity: 0.6;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(16, 33, 45, 0.65);
    border: 1px solid rgba(33, 141, 174, 0.2);
    border-radius: 12px;
    padding: 12px;
    transition: border-color 0.2s;
}

.cart-item:hover {
    border-color: var(--accent-primary);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent-secondary);
    font-size: 0.95rem;
    font-weight: 700;
}

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

.cart-qty-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.cart-qty-val {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.15);
}

/* Footer & Checkout */
.cart-footer {
    padding: 20px 25px;
    background: rgba(9, 19, 26, 0.98);
    border-top: 1px solid var(--border-color);
}

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

.cart-total-label {
    color: var(--text-muted);
}

.cart-total-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
}

.cart-checkout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.cart-checkout-btn:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.cart-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.cart-clear-btn:hover {
    color: #ef4444;
}

/* Toast de Notificación */
.cart-toast {
    position: fixed !important;
    top: 25px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-100px) !important;
    background: rgba(16, 33, 45, 0.96) !important;
    border: 1px solid var(--accent-secondary) !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 30px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(233, 188, 54, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 10006 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    max-width: 90vw !important;
    text-align: center !important;
}

.cart-toast.active {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.cart-toast i {
    color: var(--accent-secondary);
    font-size: 20px;
}

/* Estilos de botones dentro de la tarjeta de producto */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.quick-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px;
}

.quick-wa-btn:hover {
    color: #25D366;
}

/* ===================================================
   PASARELA DE PAGO Y CHECKOUT MODAL (PAYPAL & TRANSFERENCIA)
   =================================================== */

.cart-wa-alt-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25D366;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.cart-wa-alt-btn:hover {
    background: rgba(37, 211, 102, 0.12);
    border-color: #25D366;
}

/* Modal de Checkout */
.checkout-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10005 !important;
    padding: 20px !important;
}

.checkout-modal-overlay.active {
    display: flex !important;
}

.checkout-card {
    background: #0b161f;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(33, 141, 174, 0.25);
    display: flex;
    flex-direction: column;
}

.checkout-header {
    padding: 20px 30px;
    background: rgba(16, 33, 45, 0.95);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.checkout-close-btn:hover {
    color: #ffffff;
}

.checkout-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .checkout-body {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
}

.checkout-col-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--accent-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Selector de método de pago */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    background: rgba(16, 33, 45, 0.5);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method-card:hover {
    border-color: var(--accent-primary);
    background: rgba(33, 141, 174, 0.1);
}

.payment-method-card.selected {
    border-color: var(--accent-secondary);
    background: rgba(233, 188, 54, 0.12);
    box-shadow: 0 0 15px rgba(233, 188, 54, 0.25);
}

.payment-method-card input[type="radio"] {
    accent-color: var(--accent-secondary);
    width: 18px;
    height: 18px;
}

.payment-method-info {
    flex: 1;
}

.payment-method-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Caja de detalles de transferencia */
.bank-transfer-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bank-row:last-child {
    border-bottom: none;
}

.bank-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.bank-val {
    color: var(--text-main);
    font-weight: 600;
    word-break: break-all;
}

.copy-iban-btn {
    background: rgba(33, 141, 174, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
}

.copy-iban-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Resumen de compra en checkout */
.checkout-summary-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    max-height: 180px;
    overflow-y: auto;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.checkout-summary-item:last-child {
    border-bottom: none;
}

/* Pantalla de Pedido Completado */
.order-success-card {
    text-align: center;
    padding: 40px 20px;
}

.order-success-icon {
    font-size: 70px;
    color: #10b981;
    margin-bottom: 15px;
    animation: pulseGlow 2s infinite;
}

.order-code-badge {
    display: inline-block;
    background: rgba(233, 188, 54, 0.15);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    margin: 15px 0 20px;
}

/* ===================================================
   MODAL DE FICHA DETALLADA DE PRODUCTO (PRODUCT DETAIL)
   =================================================== */
.product-card-img-wrap {
    background: rgba(0,0,0,0.3);
    height: 160px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.product-card-img-wrap:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(233, 188, 54, 0.2);
}

.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.35s ease;
}

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

.product-card-img-wrap .badge-zoom {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(9, 19, 26, 0.85);
    color: var(--accent-secondary);
    border: 1px solid rgba(233, 188, 54, 0.4);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.product-card-img-wrap:hover .badge-zoom {
    background: var(--accent-secondary);
    color: #060c11;
}

.product-title-clickable {
    font-size: 1.05rem;
    margin-bottom: 10px;
    min-height: 48px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title-clickable:hover {
    color: var(--accent-secondary);
}

.btn-view-ficha {
    background: rgba(33, 141, 174, 0.15) !important;
    border: 1px solid var(--accent-primary) !important;
    color: var(--text-main) !important;
    padding: 9px 15px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.25s ease !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.btn-view-ficha:hover {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(33, 141, 174, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* Modal Overlay & Card */
.product-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(4, 9, 13, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 10002 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.product-modal-card {
    background: #0b161f !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(33, 141, 174, 0.25) !important;
    width: 100% !important;
    max-width: 860px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    padding: 30px !important;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-modal-overlay.active .product-modal-card {
    transform: scale(1);
}

.product-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 32px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    transition: all 0.2s !important;
    z-index: 10 !important;
}

.product-modal-close:hover {
    color: #ef4444 !important;
    transform: scale(1.15) !important;
}

.product-modal-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.15fr !important;
    gap: 32px !important;
    align-items: start !important;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
    .product-modal-card {
        padding: 20px !important;
    }
}

/* Columna Izquierda: Imagen */
.product-modal-visual {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-modal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--glow-shadow);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-img-wrap {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .product-modal-img-wrap {
        height: 230px;
    }
}

.product-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-modal-img:hover {
    transform: scale(1.08);
}

.product-modal-trust-box {
    margin-top: 16px;
    background: rgba(16, 33, 45, 0.65);
    border: 1px solid rgba(33, 141, 174, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-modal-trust-box div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-modal-trust-box strong {
    color: var(--text-main);
}

/* Columna Derecha: Información */
.product-modal-info {
    display: flex;
    flex-direction: column;
}

.product-modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
    padding-right: 30px;
}

.product-modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
}

.product-modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.product-modal-desc-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
}

.product-modal-desc-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-modal-desc-content {
    font-size: 0.92rem;
    color: #c4d6e2;
    line-height: 1.6;
}

.product-modal-actions-box {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.product-modal-qty-control {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.product-modal-qty-control button {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 36px;
    height: 44px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.product-modal-qty-control button:hover {
    background: var(--accent-primary);
    color: white;
}

.product-modal-qty-control span {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.product-modal-add-btn {
    flex: 1;
    height: 44px;
    font-size: 1.02rem;
}

.product-modal-secondary-actions {
    display: flex;
    gap: 10px;
}

.btn-wa-detail {
    flex: 1;
    background: #25D366;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-wa-detail:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.btn-share-detail {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 11px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-share-detail:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--text-main);
}

/* ====================================================================
   Badge y botón de estado Agotado / Sin Stock
   ==================================================================== */
.badge-agotado {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #ef4444 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4) !important;
}

.btn-agotado {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.btn-agotado:hover {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #9ca3af !important;
}


