:root { --bg-color: #040a18; --neon-blue: #00f3ff; --neon-green: #aaff00; --dark-panel: rgba(10, 20, 40, 0.8); --text-light: #ffffff; --text-muted: #a0aec0; --spacing: 2.5rem; --verified-green: #28a745; --warning: #ffc107; --god-gold: #ffd700;}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-color); color: var(--text-light); min-height: 100vh; overflow-x: hidden; }

/* --- FONDO: ESTELAS DE VELOCIDAD NOCTURNA --- */
.bg-city-lights { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.light-trail { position: absolute; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--neon-blue), #fff); box-shadow: 0 0 15px var(--neon-blue); animation: speedTrail linear infinite; opacity: 0; }
.light-trail.green { background: linear-gradient(90deg, transparent, var(--neon-green), #fff); box-shadow: 0 0 15px var(--neon-green); }
.t1 { top: 15%; width: 150px; animation-duration: 3s; animation-delay: 0s; }
.t2 { top: 35%; width: 80px; animation-duration: 5s; animation-delay: 1.5s; }
.t3 { top: 60%; width: 250px; animation-duration: 2.5s; animation-delay: 0.5s; }
.t4 { top: 80%; width: 120px; animation-duration: 4s; animation-delay: 2s; }
.t5 { top: 45%; width: 200px; animation-duration: 3.5s; animation-delay: 1s; }
@keyframes speedTrail { 0% { left: -20%; opacity: 0; transform: scaleX(0.5); } 20% { opacity: 0.6; } 80% { opacity: 0.6; } 100% { left: 120%; opacity: 0; transform: scaleX(1.5); } }

/* --- UI PRINCIPAL --- */
#top-bar { background: #000; border-bottom: 1px solid var(--neon-blue); padding: 15px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.logo { font-size: 1.2rem; font-weight: bold; color: #fff; text-shadow: 0 0 5px var(--neon-blue); }
.menu-btn { background: none; border: none; color: var(--neon-blue); font-size: 1.8rem; cursor: pointer; position: relative;}
.badge-counter { position: absolute; top: -5px; right: -5px; background: #ff4757; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.7rem; font-weight: bold; display: none; }

#side-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: rgba(4, 10, 24, 0.95); border-left: 1px solid var(--neon-blue); z-index: 2000; transition: 0.3s; padding: 2rem 1.5rem; backdrop-filter: blur(10px); overflow-y: auto; }
#side-menu.open { right: 0; }
#comercio-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: rgba(4, 10, 24, 0.95); border-left: 1px solid var(--neon-blue); z-index: 2000; transition: 0.3s; padding: 2rem 1.5rem; backdrop-filter: blur(10px); overflow-y: auto; }
#comercio-menu.open { right: 0; }
#close-menu { position: absolute; top: 15px; left: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.menu-link { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 1.2rem 0; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(0, 243, 255, 0.1); transition: 0.2s; }
.menu-link:hover { color: var(--neon-blue); padding-left: 10px; }
.perfil-menu-btn { padding: 15px; border-radius: 10px; background: rgba(0, 243, 255, 0.05); border: 1px solid transparent; transition: 0.3s; cursor: pointer; }

.screen { display: none; padding: 2rem 1.5rem; animation: fadeIn 0.4s ease forwards; max-width: 600px; margin: 0 auto; padding-bottom: 80px;}
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h1 { font-size: 2rem; margin-bottom: 1rem; text-align: center; text-shadow: 0 0 10px rgba(0,243,255,0.3); }
h2 { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--neon-blue); text-align: center; }

.form-group, .notif-card, .detail-box { background: var(--dark-panel); padding: 1.5rem; border-radius: 15px; border: 1px solid rgba(0, 243, 255, 0.1); margin-top: 1rem; cursor:pointer;}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], select { width: 100%; padding: 1rem; border-radius: 10px; border: 1px solid rgba(0, 243, 255, 0.3); background: rgba(0,0,0,0.6); color: #fff; font-size: 1rem; margin-bottom: 0.8rem; outline: none; }
label { font-size: 0.9rem; color: var(--neon-blue); margin-bottom: 5px; display: block; margin-top: 10px;}
input[type="file"] { width: 100%; padding: 0.8rem; background: rgba(0,0,0,0.4); border: 1px dashed var(--neon-blue); border-radius: 10px; color: #fff; margin-bottom: 5px; }

.password-container { position: relative; width: 100%; margin-bottom: 0.5rem; } .password-container input { margin-bottom: 0; padding-right: 3rem; } .toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 1.2rem; user-select: none; }

.btn-neon { display: block; width: 100%; padding: 1.2rem; background: linear-gradient(90deg, #021124, #05264a, #021124); background-size: 200% auto; color: #fff; border: 1px solid var(--neon-blue); border-radius: 10px; font-size: 1.1rem; font-weight: bold; cursor: pointer; text-transform: uppercase; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); margin-top: 1rem; transition: 0.3s;}
.btn-add { background: transparent; color: var(--neon-blue); border: 1px dashed var(--neon-blue); padding: 0.8rem; border-radius: 10px; width: 100%; font-size: 1rem; cursor: pointer; margin-top: 1rem; }
.btn-copy { background: var(--neon-blue); color: #000; font-weight: bold; border: none; padding: 0.8rem 1.5rem; border-radius: 5px; cursor: pointer; font-size: 1.2rem; width: 100%; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); margin-bottom: 0.5rem;}

/* Botones de Reserva */
.service-btn { margin-top:1rem; transition: 0.3s; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; }
.service-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: 0.5s; }
.service-btn:hover::before { left: 100%; }
.service-btn.reserve-mode { border-color: var(--neon-green); color: var(--neon-green); box-shadow: 0 0 15px rgba(170, 255, 0, 0.2); }
.btn-reserve-main { background: transparent; border: 2px dashed var(--neon-green); color: var(--neon-green); margin-top: 2rem; box-shadow: 0 0 20px rgba(170, 255, 0, 0.3); transition: 0.3s;}
.btn-reserve-main.active { background: var(--neon-green); color: #000; border-style: solid; }

.slider-wrapper { position: relative; width: 100%; height: 60px; background: rgba(0,0,0,0.5); border: 1px solid rgba(0, 243, 255, 0.4); border-radius: 30px; margin: var(--spacing) 0; overflow: hidden; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }
.slider-disabled { pointer-events: none !important; opacity: 0.4 !important; filter: grayscale(100%) !important; }
.slider-text { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 1.1rem; z-index: 1; pointer-events: none; text-transform: uppercase; }
.slider-thumb { position: absolute; top: 5px; left: 5px; width: 50px; height: 50px; background: var(--neon-blue); border-radius: 25px; z-index: 2; cursor: grab; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 15px var(--neon-blue); transition:0.3s;}
.slider-thumb::after { content: '>>'; color: #000; font-weight: 900; }
.slider-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: rgba(0, 243, 255, 0.2); transition:0.3s;}

#map { width: 100%; height: 350px; border-radius: 15px; margin-bottom: 1.5rem; border: 2px solid var(--neon-blue); box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); transition:0.3s;}
.price-highlight { font-size: 1.8rem; font-weight: bold; color: var(--neon-blue); transition:0.3s;}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; flex-direction: column;}
.alarm-box { text-align: center; animation: shake 0.5s infinite; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-10px); } 50% { transform: translateX(10px); } 75% { transform: translateX(-10px); } 100% { transform: translateX(0); } }

.chat-box { background: #111; width: 100%; max-width: 500px; height: 70vh; border-radius: 15px; border: 1px solid var(--neon-blue); display: flex; flex-direction: column; overflow: hidden;}
.chat-header { background: #000; padding: 15px; border-bottom: 1px solid var(--neon-blue); display: flex; justify-content: space-between; align-items: center;}
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;}
.msg-bubble { max-width: 80%; padding: 10px 15px; border-radius: 15px; font-size: 0.95rem; word-wrap: break-word;}
.msg-me { background: rgba(0, 243, 255, 0.2); border: 1px solid var(--neon-blue); align-self: flex-end; border-bottom-right-radius: 0;}
.msg-other { background: rgba(255, 255, 255, 0.1); border: 1px solid #555; align-self: flex-start; border-bottom-left-radius: 0;}

.hidden { display: none !important; }
.loader { border: 4px solid rgba(255,255,255,0.1); border-left-color: var(--neon-blue); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 2rem auto; display: none; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.timer-box { font-size: 2.5rem; font-weight: bold; color: var(--neon-blue); text-align: center; margin: 10px 0; font-family: monospace; letter-spacing: 2px; }
.timer-box.warning { color: #ffc107; }
.timer-box.danger { color: #ff4757; animation: pulseAlert 1s infinite; }
@keyframes pulseAlert { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

.switch-container { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; margin-bottom: 1.5rem; border: 1px solid #333;}
.switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider-sw { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; } .slider-sw:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider-sw { background-color: #aaff00; box-shadow: 0 0 15px #aaff00; } input:checked + .slider-sw:before { transform: translateX(26px); }

.avatar-verificado { border: 3px solid var(--verified-green) !important; box-shadow: 0 0 15px var(--verified-green) !important; }
.badge-verificado { color: var(--verified-green); font-weight: bold; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.badge-incompleto { color: #888; font-weight: normal; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.driver-avatar { width: 60px; height: 60px; border-radius: 30px; background: #333; overflow: hidden; display:flex; align-items:center; justify-content:center; font-size:1.5rem; border: 2px solid #555;}
.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-profile { display: flex; align-items: center; gap: 15px; background: rgba(0,243,255,0.1); padding: 15px; border-radius: 15px; border: 1px solid var(--neon-blue); margin-bottom: 1rem; }

#route-selector { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-top: 15px; }
.route-btn { flex: 0 0 auto; padding: 10px 15px; background: #111; border: 1px solid #444; border-radius: 10px; color: #fff; cursor: pointer; text-align: center; transition: 0.3s;}
.route-btn.selected { border-color: var(--neon-blue); background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }

/* --- ESTILOS NUEVOS: MURO, JUEGO E INSTRUCCIONES --- */
#gameCanvas { display: block; width: 100%; height: 100%; background: #111; touch-action: none; border-radius: 10px; border: 2px solid var(--neon-blue); box-shadow: inset 0 0 20px #000; }
#game-over-screen { background: rgba(0,0,0,0.95); text-align: center; color: #fff; border-radius: 10px; }
#final-score-text { font-size: 1.5rem; margin: 20px 0; color: var(--neon-green); font-weight: bold; }

.instruccion-card { background: rgba(255,255,255,0.05); border-left: 4px solid var(--neon-blue); padding: 15px; margin-bottom: 15px; border-radius: 5px; }
.instruccion-title { color: var(--neon-blue); font-weight: bold; font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px;}
.instruccion-text { font-size: 0.9rem; color: #ccc; line-height: 1.5; }

/* Resaltado para el input de peso */
#reg-peso, #upd-peso { border-color: var(--warning); background: rgba(255, 193, 7, 0.05); text-align: center; font-weight: bold; font-size: 1.2rem;}
/* =========================================
   NUEVOS ESTILOS: BANNER ANIMADO Y PWA
   ========================================= */

/* Arreglo del cartel de instalar App */
#install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(4, 10, 24, 0.95);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    backdrop-filter: blur(10px);
}
#install-banner.hidden {
    display: none !important;
}

/* Banner Promocional Animado (Luz giratoria) */
.promo-banner-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1; /* La proporción exacta */
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}
.promo-banner-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    /* La luz amarilla y verde neón */
    background: conic-gradient(transparent, transparent, transparent, var(--warning), var(--neon-green));
    animation: spin-border 3s linear infinite;
}
.promo-banner-inner {
    position: absolute;
    inset: 3px; /* Esto hace que el borde mida 3px de grosor */
    background: #111;
    border-radius: 12px;
    z-index: 1;
    overflow: hidden;
}
.promo-banner-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    opacity: 0.85;
}

/* ACÁ ESTÁ EL MOTOR DE LA ANIMACIÓN QUE FALTABA 👇 */
@keyframes spin-border {
    100% { transform: rotate(360deg); }
}

/* =========================================
   NUEVO REDISEÑO NEÓN (HOME Y MENÚ)
   ========================================= */

/* --- Tarjeta de Perfil --- */
.tech-profile-card {
    display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.6);
    border: 1px solid var(--neon-blue); border-radius: 15px; padding: 15px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15); margin-bottom: 20px;
}

/* --- Hero Section (Texto + Banner) --- */
.hero-section { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.hero-text h2 { font-size: 2rem; color: #fff; text-align: left; margin-bottom: 5px; line-height: 1.2; }
.hero-text p { color: #aaa; font-size: 0.95rem; line-height: 1.4; margin: 0; }

/* --- Grilla de Acciones (Botones Home) --- */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.action-card {
    background: rgba(0,0,0,0.5); border: 1px solid; border-radius: 12px; padding: 12px 5px;
    text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column; align-items: center; position: relative;
}
.action-card:active { transform: scale(0.95); }
.action-card h3 { color: #fff; font-size: 0.85rem; font-weight: 800; margin: 8px 0; text-transform: uppercase; line-height: 1.1; }
.action-card p { color: #aaa; font-size: 0.7rem; line-height: 1.2; margin: 0 0 10px 0; }

.icon-wrapper { font-size: 2rem; margin-bottom: 2px; text-shadow: 0 0 15px currentColor; }
.arrow-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid; display: flex;
    align-items: center; justify-content: center; font-size: 0.75rem; margin-top: auto;
}

/* Colores Neón Específicos */
.border-cyan { border-color: var(--neon-blue); box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1); }
.border-cyan .arrow-btn { border-color: var(--neon-blue); color: var(--neon-blue); }
.cyan { color: var(--neon-blue); }

.border-green { border-color: var(--neon-green); box-shadow: inset 0 0 10px rgba(170, 255, 0, 0.1); }
.border-green .arrow-btn { border-color: var(--neon-green); color: var(--neon-green); }
.green { color: var(--neon-green); }

.border-blue { border-color: #2d72ff; box-shadow: inset 0 0 10px rgba(45, 114, 255, 0.1); }
.border-blue .arrow-btn { border-color: #2d72ff; color: #2d72ff; }
.blue { color: #2d72ff; }

.border-purple { border-color: #b500ff; box-shadow: inset 0 0 10px rgba(181, 0, 255, 0.1); }
.border-purple .arrow-btn { border-color: #b500ff; color: #b500ff; }
.purple { color: #b500ff; }

.border-red { border-color: #ff4757; box-shadow: inset 0 0 10px rgba(255, 71, 87, 0.1); }
.red { color: #ff4757; }

/* --- Nuevo Menú Lateral --- */
.tech-menu { padding: 4rem 1.5rem 2rem 1.5rem !important; border-left: 1px solid var(--neon-blue); box-shadow: -5px 0 25px rgba(0, 243, 255, 0.15); }
.tech-menu-link {
    display: flex; align-items: center; background: rgba(0,0,0,0.6); border: 1px solid;
    border-radius: 10px; padding: 12px 15px; margin-bottom: 10px; text-decoration: none;
    transition: 0.2s;
}
.tech-menu-link:active { transform: scale(0.98); }
.menu-icon { font-size: 1.3rem; margin-right: 15px; width: 30px; text-align: center; text-shadow: 0 0 10px currentColor;}
.menu-text { color: #fff; font-size: 0.95rem; font-weight: bold; flex: 1; }
.menu-arrow { color: #555; font-size: 0.9rem; }
/* =========================================
   NUEVO REDISEÑO CYBERPUNK (COMERCIOS Y NEGOCIO)
   ========================================= */

/* Títulos y botón Volver */
.cyber-title-container { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
.btn-back-cyber { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--neon-blue); background: transparent; color: var(--neon-blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; box-shadow: 0 0 10px rgba(0, 243, 255, 0.2); }
.cyber-title { color: #fff; font-size: 1.5rem; text-shadow: 0 0 10px rgba(0,255,255,0.5); margin: 0; font-weight: bold; }

/* Cajas futuristas con esquinas iluminadas */
.cyber-card { 
    position: relative; background: var(--dark-panel); 
    border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 12px; 
    padding: 20px; box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05), 0 0 15px rgba(0, 243, 255, 0.1); 
    margin-bottom: 20px; 
}
/* Esquinas de la caja */
.cyber-card::before, .cyber-card::after { content: ''; position: absolute; width: 30px; height: 30px; border: 2px solid transparent; pointer-events: none; }
.cyber-card::before { top: -1px; left: -1px; border-top-color: var(--neon-blue); border-left-color: var(--neon-blue); border-radius: 12px 0 0 0; box-shadow: -2px -2px 10px rgba(0,243,255,0.5); }
.cyber-card::after { bottom: -1px; right: -1px; border-bottom-color: var(--neon-blue); border-right-color: var(--neon-blue); border-radius: 0 0 12px 0; box-shadow: 2px 2px 10px rgba(0,243,255,0.5); }

/* Botón Cyan Sólido */
.btn-cyber-cyan { background: #00e5ff; color: #000; font-weight: 900; border: none; padding: 12px 20px; border-radius: 8px; width: 100%; font-size: 1rem; cursor: pointer; box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); text-transform: uppercase; margin-top: 10px; }

/* Pestañas de Mi Negocio */
.cyber-tabs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; width: 100%; }
.cyber-tabs-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; width: 100%; }
.cyber-tab { background: rgba(0,0,0,0.6); border: 1px solid rgba(0, 243, 255, 0.3); border-radius: 8px; color: #fff; padding: 12px 5px; font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; transition: 0.3s; }
.cyber-tab span.icon { font-size: 1.3rem; }
.cyber-tab.active { background: rgba(0, 243, 255, 0.15); border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); color: var(--neon-blue); font-weight: bold; }
/* =========================================
   SISTEMA DE AVISOS (TOAST) Y EDITOR DE FOTOS
   ========================================= */

/* Notificación emergente profesional */
#toast-neon {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(10, 20, 40, 0.95); border: 1px solid var(--neon-green);
    color: #fff; padding: 12px 25px; border-radius: 30px; font-weight: bold;
    box-shadow: 0 0 20px rgba(170, 255, 0, 0.3); z-index: 999999;
    display: flex; align-items: center; gap: 10px; transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#toast-neon.show { bottom: 30px; }
#toast-neon.error { border-color: #ff4757; box-shadow: 0 0 20px rgba(255, 71, 87, 0.3); }

/* Contenedor de foto de producto editable */
.photo-edit-container {
    width: 100%; height: 200px; border-radius: 10px; border: 2px dashed var(--neon-blue);
    background: #111; position: relative; overflow: hidden; cursor: pointer;
    display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
    transition: 0.3s;
}
.photo-edit-container:hover { border-style: solid; box-shadow: 0 0 15px rgba(0,243,255,0.2); }
.photo-edit-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.photo-edit-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.8);
    color: var(--neon-blue); text-align: center; padding: 10px 0; font-weight: bold;
    font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px;
}
/* Bloquear el resaltado celeste feo del navegador en el menú */
.tech-menu-link {
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    outline: none !important;
}

.tech-menu-link:focus, 
.tech-menu-link:active {
    background: rgba(0,0,0,0.6) !important;
    outline: none !important;
}
/* =========================================
   SISTEMA DE AVISOS (TOAST) NEÓN
   ========================================= */
#toast-neon {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(10, 20, 40, 0.95); border: 1px solid var(--neon-green);
    color: #fff; padding: 12px 25px; border-radius: 30px; font-weight: bold;
    box-shadow: 0 0 20px rgba(170, 255, 0, 0.3); z-index: 999999;
    display: flex; align-items: center; gap: 10px; transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#toast-neon.show { bottom: 30px; }
#toast-neon.error { border-color: #ff4757; box-shadow: 0 0 20px rgba(255, 71, 87, 0.3); }
.ai-mic-card .close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    left: auto !important; /* Desengancha de la izquierda */
    background: transparent !important;
    border: none !important;
    color: #ff4757 !important; /* Rojo neón */
    font-size: 1.5rem !important;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    box-shadow: none !important;
}
/* --- ANIMACIÓN DEL PUNTO VERDE TITILANDO --- */
@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(170, 255, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(170, 255, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(170, 255, 0, 0); }
}
.blinking-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--neon-green);
    border-radius: 50%;
    margin-left: 10px;
    animation: pulseDot 1.5s infinite;
}

/* --- TARJETA FLOTANTE DEL MICRÓFONO IA --- */
.ai-mic-card {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    text-align: center;
}

/* --- ANIMACIÓN DEL MICRÓFONO (LATIDO NEÓN) --- */
@keyframes pulseMic {
    0% { transform: scale(1); box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3), 0 0 15px rgba(0, 243, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: inset 0 0 25px rgba(0, 243, 255, 0.8), 0 0 35px rgba(0, 243, 255, 0.8); background: rgba(0, 243, 255, 0.2); }
    100% { transform: scale(1); box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3), 0 0 15px rgba(0, 243, 255, 0.3); }
}

.ai-mic-btn {
    background: rgba(0, 243, 255, 0.1) !important;
    border: 2px solid var(--neon-blue) !important;
    color: #fff !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 15px auto !important;
    cursor: pointer !important;
    box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.3), 0 0 15px rgba(0, 243, 255, 0.3) !important;
    transition: transform 0.3s !important;
    animation: pulseMic 1.5s infinite ease-in-out !important;
    outline: none !important;
}

.ai-mic-btn svg {
    filter: drop-shadow(0 0 5px var(--neon-blue));
}
/* --- ONDA DE AUDIO ANIMADA (WAVEFORM) --- */
.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    margin: 15px auto;
}

.wave-bar {
    width: 6px;
    background-color: var(--neon-blue);
    border-radius: 3px;
    animation: waveAction 1.2s ease-in-out infinite;
}

/* Le damos distintos tiempos y alturas a cada barrita para que parezca voz real */
.wave-bar:nth-child(1) { height: 15px; animation-delay: 0.0s; }
.wave-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; background-color: var(--neon-green); }
.wave-bar:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 15px; animation-delay: 0.4s; }

@keyframes waveAction {
    0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; box-shadow: 0 0 10px var(--neon-blue); }
}