/* =========================================
   1. VARIABLES & PALETA "MODERN GLASS"
   ========================================= */
:root {
    /* --- Marca --- */
    --color-orange: #FD572A;       /* Acción Principal */
    --color-purple: #695BC7;       /* Estructura / Sombras */
    --accent: #DAFF03;             /* NEÓN (Detalles, Focos) */
    --color-bone: #acacac;         /* Fondo Gris Solicitado */
    
    /* --- Textos --- */
    --color-text-main: #222222;    /* Negro casi puro */
    --color-text-muted: #444444;   /* Gris oscuro legible */
    
    /* --- Glassmorphism --- */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.95);
    --glass-blur: 20px;
    
    /* --- Sombras --- */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 50px rgba(253, 87, 42, 0.15), 0 5px 15px rgba(0,0,0,0.05);

    /* --- Radios --- */
    --radius-card: 20px;
    --radius-btn: 12px;
}

/* =========================================
   2. ANIMACIONES
   ========================================= */
@keyframes floatNavbar {
    0% { transform: translateY(0px); filter: drop-shadow(0 0 5px rgba(253, 87, 42, 0.6)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 0 20px rgba(253, 87, 42, 1)); }
    100% { transform: translateY(0px); filter: drop-shadow(0 0 5px rgba(253, 87, 42, 0.6)); }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fillBar { from { width: 0%; } to { width: var(--target-width); } }

.fade-in { animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.bounce-in { animation: floatNavbar 3s ease-in-out infinite; }

/* =========================================
   3. BASE & RESET
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--color-bone);
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--color-text-main);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    display: flex; flex-direction: column;
    overflow-x: hidden;
    padding-top: 120px; /* Espacio para el navbar fijo */
}

a { text-decoration: none; color: var(--color-purple); font-weight: 600; transition: 0.3s; }
a:hover { color: var(--color-orange); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   4. LAYOUT & UTILIDADES
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.d-flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-column { flex-direction: column; }
.gap-2 { gap: 10px; }

.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1; padding: 15px; min-width: 300px; }

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.py-5 { padding: 4rem 0; }
.h-100 { height: 100%; }

.icon-lg { 
    font-size: 3rem; color: var(--color-purple); 
    filter: drop-shadow(2px 2px 0px var(--accent));
    margin-bottom: 15px; display: inline-block; 
}

/* =========================================
   5. SMART NAVBAR & LOGO
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 90px; z-index: 1000;
    display: flex; align-items: center; justify-content: flex-end; padding: 0 30px;
    
    /* Efecto Glass + Borde Neón */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--accent); /* Línea Neón PC */
    
    transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Smart Scroll States */
.navbar-hidden { transform: translateY(-100%); }
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95); /* Más sólido al bajar */
    box-shadow: 0 2px 20px var(--accent); /* Glow intenso al bajar */
}

/* Enlaces Menú PC */
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { 
    color: #555; font-weight: 700; font-size: 0.95rem; margin-left: 5px;
    display: flex; align-items: center; gap: 6px; transition: 0.3s;
}
.nav-links a i { font-size: 1.2rem; color: var(--color-purple); }
.nav-links a:hover { color: var(--color-orange); }
.nav-links a:hover i { color: var(--color-orange); }

/* Logo PC Flotante */
.navbar > a.d-flex {
    position: absolute; left: 30px; top: 5px; z-index: 2000; transition: 0.3s ease;
}
.navbar-logo-neon {
    height: 130px; width: auto; margin-top: 20px; object-fit: contain;
    animation: floatNavbar 4s ease-in-out infinite;
    transition: height 0.3s ease, margin-top 0.3s ease;
}
.navbar-scrolled .navbar-logo-neon { height: 90px; margin-top: 5px; }

/* =========================================
   6. COMPONENTES UI
   ========================================= */
.glass-panel {
    background: var(--glass-bg); border: 2px solid var(--glass-border);
    border-radius: var(--radius-card); padding: 30px;
    box-shadow: var(--shadow-soft); transition: 0.3s;
}
.glass-panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); background: #FFFFFF; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-btn);
    font-weight: 800; cursor: pointer; border: none;
    text-transform: uppercase; font-size: 0.9rem; transition: 0.2s;
}
.btn-primary { background: var(--color-orange); color: white; box-shadow: 0 8px 20px -5px rgba(253, 87, 42, 0.4); }
.btn-primary:hover { background: #ff6b42; transform: translateY(-2px); box-shadow: 0 12px 25px -5px rgba(218, 255, 3, 0.5); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--color-purple); color: var(--color-purple); }
.btn-outline:hover { background: var(--color-purple); color: white; box-shadow: 0 5px 15px rgba(105, 91, 199, 0.3); }

/* Botón Admin PC */
.btn-admin-mobile { display: flex; align-items: center; justify-content: center; background: transparent; border: none; }

/* Inputs & Badges */
.input-neon {
    width: 100%; padding: 15px; background: white; border: 2px solid rgba(105, 91, 199, 0.15);
    border-radius: 12px; margin-bottom: 20px; font-size: 1rem; transition: 0.3s;
}
.input-neon:focus { border-color: var(--color-purple); outline: none; box-shadow: 0 0 0 4px rgba(218, 255, 3, 0.4); }
.badge { padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 900; }
.status-LISTO { background: var(--accent); color: #000; box-shadow: 0 0 10px var(--accent); }

/* =========================================
   7. TRACKING
   ========================================= */
.timeline-wrapper { margin: 40px 0; position: relative; padding: 0 10px; }
.progress-track { background: #e0e0e0; height: 8px; border-radius: 10px; margin-top: 15px; position: relative; }
.progress-fill {
    background: linear-gradient(90deg, var(--color-orange), #ff9f43); height: 100%;
    border-radius: 10px; box-shadow: 0 0 15px rgba(253, 87, 42, 0.6);
    width: 0%; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.steps-container { display: flex; justify-content: space-between; position: relative; top: -24px; z-index: 1; }
.step-item { text-align: center; width: 25%; position: relative; }
.step-dot {
    width: 40px; height: 40px; background: #fff; border: 3px solid #ccc;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px auto; color: #999; font-size: 1.2rem; transition: all 0.4s ease;
}
.step-item.completed .step-dot { background: var(--color-orange); border-color: var(--color-orange); color: white; }
.step-item.active .step-dot {
    background: var(--accent); border-color: var(--color-orange); color: #000;
    transform: scale(1.2); box-shadow: 0 0 0 5px rgba(253, 87, 42, 0.2);
}

/* =========================================
   8. INDEX & SERVICIOS
   ========================================= */
.search-container { position: relative; width: 100%; display: flex; align-items: center; }
.search-input {
    width: 100%; padding: 18px 55px 18px 25px;
    border-radius: 50px; border: 2px solid rgba(105, 91, 199, 0.15);
    background: #FFFFFF; font-size: 1rem; font-weight: 600;
    transition: 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.search-input:focus { border-color: var(--color-orange); box-shadow: 0 10px 30px rgba(253, 87, 42, 0.15); outline: none; }

.btn-scan {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: var(--color-orange); color: white; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(253, 87, 42, 0.3);
}
.btn-scan:hover { transform: translateY(-50%) scale(1.1); background: var(--accent); color: black; }

.action-card {
    background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: 0.3s;
    margin-top: 10px;
}
.action-card:hover { background: white; border-color: var(--color-orange); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding-bottom: 100px; }
.product-card {
    background: white; border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 20px;
    display: flex; flex-direction: column; height: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.product-card:hover { border-color: var(--color-orange); transform: translateY(-5px); }
.service-img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 15px; background: #eee; }
.service-title { font-size: 1.15rem; font-weight: 800; color: var(--color-text-main); margin-bottom: 5px; }
.service-desc { font-size: 0.95rem; color: #666; margin-bottom: 15px; min-height: 45px; }
.service-price { font-size: 1.4rem; font-weight: 900; color: var(--color-orange); margin-bottom: 15px; }

/* Galería */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.ba-card {
    position: relative; height: 320px; overflow: hidden;
    border-radius: 16px; background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.ba-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.ba-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px; z-index: 10;
}
.ba-overlay h3 { color: white; font-size: 1.1rem; margin: 0; text-shadow: 0 2px 4px black; }
.ba-controls {
    position: absolute; top: 15px; right: 15px; z-index: 20;
    background: rgba(0,0,0,0.6); border-radius: 30px; padding: 4px; display: flex;
}
.ba-btn { font-size: 0.7rem; padding: 6px 12px; border-radius: 20px; color: #fff; cursor: pointer; transition: 0.3s; }
.ba-btn.active { background: var(--color-orange); }
.img-before { position: absolute; top: 0; left: 0; opacity: 0; z-index: 1; }
.img-after { position: absolute; top: 0; left: 0; opacity: 1; z-index: 2; }
.show-before .img-before { opacity: 1; z-index: 3; }
.show-before .img-after { opacity: 0; }

.float-cart {
    position: fixed; bottom: 30px; right: 20px; background: var(--color-orange); color: white;
    width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(253, 87, 42, 0.5); z-index: 9999; border: 3px solid white; transition: 0.3s;
}
.cart-badge {
    position: absolute; top: 0; right: 0; background: var(--accent); color: black;
    width: 24px; height: 24px; border-radius: 50%; font-weight: bold; border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
}

/* =========================================
   9. MEDIA QUERIES (MÓVIL TOTAL)
   ========================================= */
@media (max-width: 768px) {
    /* Ajuste de Body para Navbar Móvil */
    body { padding-top: 90px; }
    
    .container { padding: 0 15px; }
    .py-5 { padding: 2rem 0; }
    
    /* Navbar Móvil */
    .navbar {
        height: 70px;
        justify-content: space-between; 
        padding: 0 15px;
        background: rgba(255,255,255,0.95); /* Más sólido */
        border-bottom: 2px solid var(--accent); /* Línea Neón Visible */
        box-shadow: 0 2px 15px var(--accent); /* Glow Móvil */
    }

    /* 1. Resetear logo flotante */
    .navbar > a.d-flex {
        position: relative; left: auto; top: auto; margin: 0; z-index: 1;
    }

    /* 2. Logo Móvil (Seguro y Estático) */
    .navbar-logo-neon {
        height: 50px !important; margin-top: 0 !important;
        animation: none !important; 
        filter: drop-shadow(0 0 4px rgba(253, 87, 42, 0.4)) !important;
    }

    /* 3. MENÚ MÓVIL OPTIMIZADO (ICONOS UNIFICADOS) */
    .nav-links { gap: 12px; }
    
    /* Ocultar texto para limpieza */
    .nav-links a span.hide-on-mobile { display: none; }
    
    /* ESTILO BASE ICONOS MÓVIL (Púrpura como en web) */
    .nav-links a { 
        margin: 0; padding: 5px; 
        color: var(--color-purple) !important; /* COLOR UNIFICADO */
    }
    .nav-links a i { 
        font-size: 1.6rem !important; /* ICONO GRANDE */
        color: inherit; 
    }
    
    /* BOTÓN ADMIN MÓVIL (Círculo elegante) */
    .btn-admin-mobile {
        width: 42px; height: 42px;
        border: 2px solid var(--color-purple);
        border-radius: 50%;
        background: rgba(105, 91, 199, 0.05);
        color: var(--color-purple) !important;
    }
    .btn-admin-mobile i { font-size: 1.4rem !important; }

    /* BOTÓN CLIENTE (Excepción: Mantiene color naranja) */
    .nav-links a.btn-primary {
        background: var(--color-orange);
        color: white !important;
        width: 42px; height: 42px; padding: 0 !important; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(253, 87, 42, 0.4);
    }
    .nav-links a.btn-primary i { color: white !important; font-size: 1.3rem !important; }

    /* 4. Layout & Grid */
    .row { flex-direction: column; gap: 20px; }
    .col { width: 100%; min-width: auto; padding: 0; }
    .service-grid, .gallery-grid { grid-template-columns: 1fr !important; } /* 1 Columna Grande */
    
    /* 5. Quick Actions Horizontal */
    .action-card {
        flex-direction: row !important;
        align-items: center; justify-content: start; gap: 15px;
        text-align: left;
    }
    
    /* 6. Utilidades */
    .hide-on-mobile { display: none !important; }
    .show-on-mobile { display: block !important; }
}

/* Estados de Pedidos - Consistencia Visual */
.bg-solicitado { background: rgba(155, 89, 182, 0.2) !important; color: #9b59b6 !important; border: 1px solid #9b59b6; }
.bg-pendiente  { background: rgba(241, 196, 15, 0.2) !important; color: #f1c40f !important; border: 1px solid #f1c40f; }
.bg-recibido   { background: #34495e !important; color: #ecf0f1 !important; }
.bg-proceso    { background: rgba(52, 152, 219, 0.2) !important; color: #3498db !important; border: 1px solid #3498db; }
.bg-listo      { background: rgba(235, 94, 40, 0.2) !important; color: #EB5E28 !important; border: 1px solid #EB5E28; }
.bg-entregado  { background: rgba(46, 204, 113, 0.2) !important; color: #2ecc71 !important; border: 1px solid #2ecc71; }

/* Ajuste para el formulario de pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}
.method-card {
    border: 1px solid #444;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}
.method-card:hover { border-color: #EB5E28; }
input[type="radio"]:checked + .method-card {
    background: rgba(235, 94, 40, 0.1);
    border-color: #EB5E28;
}