/* ========================================
   ESTILOS PRINCIPALES - COMPUTÉCNICOS
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #ff4747;
    --primary-hover: #d93636;
    --bg-dark: #050505;
    --bg-darker: #181818;
    --bg-card: #222;
    --bg-card-hover: #232323;
    --border-color: #333;
    --text-white: #fff;
    --text-gray: #gray-400;
    --shadow-dark: 0 4px 24px 0 #0008;
    --shadow-red: 0 2px 8px 0 #ff474733;
    --shadow-red-hover: 0 4px 16px 0 #ff474755;
}

/* ============== Tailwind rojo overrides (consistencia de tema) ============== */
.text-red-500,
.text-red-600 {
    color: var(--primary-color) !important;
}

.hover\:text-red-500:hover,
.hover\:text-red-600:hover {
    color: var(--primary-color) !important;
}

.bg-red-600,
.bg-red-700 {
    background-color: var(--primary-color) !important;
}

.hover\:bg-red-600:hover,
.hover\:bg-red-700:hover {
    background-color: var(--primary-color) !important;
}

.border-red-600,
.border-red-700 {
    border-color: var(--primary-color) !important;
}

.accent-red-600,
.accent-red-700 {
    accent-color: var(--primary-color) !important;
}

/* Estilos base */
html, body {
    background-color: var(--bg-dark) !important;
    color: var(--text-white) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navegación principal */
.main-menu-link {
    position: relative;
    color: var(--text-white);
    transition: color 0.3s;
    text-decoration: none;
    padding: 8px 16px;
}

.main-menu-link:hover,
.main-menu-link.active-menu {
    color: var(--primary-color);
}

/* Menú activo */
.active-menu {
    color: var(--primary-color) !important;
    position: relative;
}

/* Botones */
.btn-tech {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    width: 100%;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-red);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-tech:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-red-hover);
}

/* Inputs */
.input-tech {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-white);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.input-tech:focus {
    border: 1.5px solid var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px #ff000055;
}

/* Cards */
.card-tech {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-dark);
    animation: fadeInUp 0.7s cubic-bezier(.39, .575, .565, 1) both;
}

/* Animaciones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s cubic-bezier(.39, .575, .565, 1) both;
}

/* Spinner */
.spinner {
    border: 3px solid var(--text-white);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* Mensajes de error */
.error-msg {
    color: var(--primary-color);
    background: #ff474722;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: none;
}

.error-msg.show {
    display: block !important;
}

/* Productos */
.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em;
}

/* Responsive */
@media (max-width: 768px) {
    .main-menu-link {
        padding: 6px 12px;
    }

    .card-tech {
        border-radius: 0.75rem;
    }
}

/* ========================================
   NOTIFICACIÓN DE REVIEW
   (Movido desde header.php inline <style>)
   ======================================== */

#review-notification-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9998;
    max-width: 400px;
    width: calc(100% - 2rem);
    animation: reviewNotifIn 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

@keyframes reviewNotifIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

#review-notification-banner.hiding {
    animation: reviewNotifOut 0.3s ease forwards;
}

@keyframes reviewNotifOut {
    to { opacity: 0; transform: translateY(16px) scale(0.96); }
}

.review-notif-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-left: 4px solid #facc15;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.review-notif-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
}

.review-notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-notif-text {
    font-size: 0.82rem;
    color: #ccc;
    line-height: 1.4;
}

.review-notif-text strong {
    color: #fff;
    font-weight: 700;
}

.review-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #cc0000, #ff0000);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-notif-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.review-notif-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #555;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.15s;
}

.review-notif-close:hover {
    color: #ff4444;
}

@media (max-width: 480px) {
    #review-notification-banner {
        bottom: 1rem;
        right: 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* ========================================
   REGISTRO MULTI-PASO (LOGIN MODAL)
   (Movido desde login-modal.php inline <style>)
   ======================================== */

.reg-step {
    display: none;
    width: 100%;
}

.reg-step.reg-step-active {
    display: block;
    animation: regStepIn 0.35s ease-out;
}

@keyframes regStepIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.reg-progress-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.reg-progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #333;
    transition: background 0.3s;
}

.reg-progress-dot.reg-dot-done {
    background: var(--neon-red, #ff0000);
}

.reg-progress-dot.reg-dot-current {
    background: var(--neon-red, #ff0000);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.reg-step-title {
    color: #e0e0e0;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reg-back-btn {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 12px 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.reg-back-btn:hover {
    background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
    color: #fff;
    border-color: #777;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

/* El botón SIGUIENTE ahora usa .glass-btn (definido en index.css o tema central) */


/* Estilos especiales para el input del código de verificación */
.reg-step #register-simple-codigo {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 10px;
    font-weight: 800;
    font-family: 'Orbitron', 'Courier New', monospace;
    color: #ff3333;
    padding: 0.9rem 1rem 0.9rem 1rem;
    caret-color: #ff0000;
}

.reg-step #register-simple-codigo::placeholder {
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #555;
}

/* Resaltar el input group del código cuando tiene focus */
.reg-step .glass-input-group:has(#register-simple-codigo):focus-within {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3), inset 0 0 8px rgba(255, 0, 0, 0.05);
}

/* Botón de reenviar código */
.reg-resend-link {
    background: none;
    border: 1px solid transparent;
    color: #ff4444;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.reg-resend-link:hover:not(:disabled) {
    color: #ff6666;
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.reg-resend-link:disabled {
    color: #555;
    cursor: not-allowed;
    background: none;
    border-color: transparent;
}

/* ========================================
   STATUS PAGE
   (Movido desde status.php inline <style>)
   ======================================== */

.status-card { background: #232323; border: 1px solid #333; border-radius: 12px; padding: 16px; margin-bottom: 16px; color: #fff }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px }
.status-pill { display: inline-block; border: 1px solid #444; border-radius: 9999px; padding: 6px 10px; margin-right: 8px; font-size: 12px }
.status-code { background: #1e1e1e; border: 1px solid #333; border-radius: 6px; padding: 2px 6px }
.status-table { width: 100%; border-collapse: collapse }
.status-table th, .status-table td { border-bottom: 1px solid #333; padding: 8px; text-align: left }
.status-table th { color: #cbd5e1 }
.status-ok { color: #86efac }
.status-warn { color: #fde68a }
.status-err { color: #fca5a5 }