/* -------------------------------------------------------------------------- */
/* INDUSTRIAL SAFETY SIGN STORE - DESIGN SYSTEM & MODERN STYLING               */
/* -------------------------------------------------------------------------- */

:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #26354a;
    --bg-input: #0f172a;
    --border-color: #334155;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    --accent-safety: #ff9800; /* Industrial Warning Yellow-Orange */
    --accent-red: #ef4444;    /* Fire / Stop Red */
    --accent-green: #10b981;  /* Evacuation Green */
    --accent-blue: #3b82f6;   /* Obligatory Blue */
    --accent-glow: #22c55e;   /* Fotoluminiscente Glow Green */
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(34, 197, 94, 0.4);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: #4a4f55;
    background-image: url('../images/textura_tile.png');
    background-repeat: repeat;
    background-size: 19.5px 19.5px;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.panel-tablero-page {
    background-color: #aadaff !important;
    background-image: none !important;
    --bs-body-bg: #aadaff !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION                                                        */
/* -------------------------------------------------------------------------- */

.top-bar {
    background: #090d16;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-badge {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-safety);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    flex-shrink: 0;
}

.logo-img {
    height: 58px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent-safety), #d97706);
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.search-form {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 48px 12px 18px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-safety);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-safety);
    color: var(--text-inverse);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-staff-menu {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-staff-menu:hover,
.custom-dropdown.open .btn-staff-menu {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: var(--accent-safety);
    color: var(--accent-safety);
    transform: translateY(-1px);
}

.btn-user-avatar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-user-avatar:hover,
.custom-dropdown.open .btn-user-avatar {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-safety);
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-safety), #d97706);
    color: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: rgba(11, 17, 32, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-admin:hover {
    background: rgba(11, 17, 32, 0.92);
    border-color: var(--accent-safety);
    color: var(--accent-safety);
}

.btn-back-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(11, 17, 32, 0.78);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-back-catalog:hover {
    background: rgba(11, 17, 32, 0.92);
    border-color: var(--accent-safety);
    color: var(--accent-safety);
    transform: translateX(-2px);
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cart-badge {
    background: #ffffff;
    color: #059669;
    font-weight: 800;
    font-size: 0.8rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* CATEGORIES NAVIGATION BAR & DROPDOWN                                       */
/* -------------------------------------------------------------------------- */

.cat-nav {
    background: #111827;
    border-bottom: 1px solid var(--border-color);
    padding: 4px 0;
}

.cat-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.cat-link:hover, .cat-link.active {
    color: var(--accent-safety);
    background: rgba(255, 152, 0, 0.1);
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger-btn {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.dropdown-trigger-btn:hover, .dropdown-trigger-btn.active-cat {
    border-color: var(--accent-safety);
    color: var(--accent-safety);
    background: rgba(255, 152, 0, 0.1);
}

.dropdown-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    padding: 6px 0;
    max-height: 380px;
    overflow-y: auto;
}

.custom-dropdown:hover .dropdown-menu-content,
.custom-dropdown.open .dropdown-menu-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-safety);
}

.dropdown-item.selected {
    color: var(--accent-safety);
    font-weight: 600;
    background: rgba(255, 152, 0, 0.08);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.dropdown-header {
    padding: 6px 16px 2px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-menu-content.dropdown-menu-right {
    left: auto;
    right: 0;
}

.staff-menu-content {
    min-width: 220px;
}

.badge-soon {
    font-size: 0.65rem;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.user-menu-content {
    min-width: 250px;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.user-avatar-circle-large {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-safety), #d97706);
    color: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.user-display-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.2;
}

.user-email-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    word-break: break-all;
}

.staff-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.client-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.logout-btn-item {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.15s ease;
}

.logout-btn-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}


/* -------------------------------------------------------------------------- */
/* HERO BANNER                                                                */
/* -------------------------------------------------------------------------- */

.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #064e3b 100%);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-safety);
}

.stat-number.glow {
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-featured-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--accent-safety);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-featured-box h3 {
    color: var(--accent-safety);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hero-featured-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.glow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-glow);
    border: 1px solid var(--accent-glow);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* MAIN CONTENT LAYOUT                                                       */
/* -------------------------------------------------------------------------- */

.main-content {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

.filter-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-btn {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-safety);
    color: var(--text-inverse);
    border-color: var(--accent-safety);
    font-weight: 600;
}

.filter-btn.glow-btn.active {
    background: var(--accent-glow);
    color: #000;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
    border-color: var(--accent-glow);
}

.sort-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* PRODUCT GRID & CARDS                                                      */
/* -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-safety);
}

.product-card.is-fotolum:hover {
    border-color: var(--accent-glow);
    box-shadow: var(--shadow-glow);
}

.card-badge-fotolum {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--accent-glow);
    border: 1px solid var(--accent-glow);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.card-sku {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 600;
    z-index: 2;
}

.product-img-wrap {
    height: 200px;
    background: rgba(11, 17, 32, 0.74);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

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

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

.product-body {
    padding: 1.2rem;
    background: rgba(30, 41, 59, 0.80);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    background: rgba(15, 23, 42, 0.55);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-safety);
}

.btn-add-cart {
    background: var(--accent-safety);
    color: var(--text-inverse);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-add-cart:hover {
    background: #e68a00;
    transform: scale(1.03);
}

/* -------------------------------------------------------------------------- */
/* DETALLE PRODUCTO                                                           */
/* -------------------------------------------------------------------------- */

.detail-container {
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.detail-img-box {
    background: rgba(11, 17, 32, 0.72);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    border: 1px solid var(--border-color);
    position: relative;
}

.detail-img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.detail-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.detail-meta-table th, .detail-meta-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    text-align: left;
}

.detail-meta-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
}

.detail-meta-table td {
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* CARRITO Y CHECKOUT                                                         */
/* -------------------------------------------------------------------------- */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.cart-table th, .cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cart-table th {
    background: #111827;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.checkout-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

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

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-safety);
}

/* -------------------------------------------------------------------------- */
/* FOOTER                                                                     */
/* -------------------------------------------------------------------------- */

.footer {
    background: #090d16;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Flash Messages */
.messages-container {
    max-width: 1280px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
}

.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-safety);
    border: 1px solid var(--accent-safety);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .detail-container {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
    }
    .search-form {
        width: 100%;
        max-width: 100%;
    }
}


/* ========================================================================== */
/* INMUNIZACION DE NAVBAR Y MENUS CONTRA BOOTSTRAP 5 Y HOJAS EXTERNAS        */
/* ========================================================================== */

header.header .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

header.header a,
header.header button {
    text-decoration: none !important;
}

header.header .btn-staff-menu,
.custom-dropdown .btn-staff-menu {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 14px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    border-radius: var(--radius-sm, 8px) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

header.header .btn-staff-menu:hover,
.custom-dropdown.open .btn-staff-menu {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

header.header .btn-login {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 15px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main, #f8fafc) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    border-radius: var(--radius-sm, 8px) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

header.header .btn-login:hover {
    background: rgba(255, 152, 0, 0.15) !important;
    border-color: var(--accent-safety, #ff9800) !important;
    color: var(--accent-safety, #ff9800) !important;
    text-decoration: none !important;
}

header.header .btn-user-avatar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 12px 4px 5px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--text-main, #f8fafc) !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

header.header .btn-user-avatar:hover,
.custom-dropdown.open .btn-user-avatar {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-safety, #ff9800) !important;
}

header.header .user-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--accent-safety, #ff9800), #d97706) !important;
    color: #0b1120 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.custom-dropdown .dropdown-menu-content {
    background: #111827 !important;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12)) !important;
    border-radius: var(--radius-md, 10px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
    padding: 6px 0 !important;
    z-index: 99999 !important;
}

.custom-dropdown .dropdown-header {
    display: block !important;
    padding: 8px 16px 4px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--text-muted, #94a3b8) !important;
    background: transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

.custom-dropdown .dropdown-divider {
    height: 1px !important;
    background: var(--border-color, rgba(255, 255, 255, 0.1)) !important;
    margin: 4px 0 !important;
    border: none !important;
    opacity: 1 !important;
}

.custom-dropdown .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 16px !important;
    color: #f8fafc !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    background: transparent !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    text-align: left !important;
    white-space: nowrap !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
    background: rgba(255, 152, 0, 0.15) !important;
    color: var(--accent-safety, #ff9800) !important;
    text-decoration: none !important;
}

.custom-dropdown .dropdown-item.selected {
    color: var(--accent-safety, #ff9800) !important;
    font-weight: 600 !important;
    background: rgba(255, 152, 0, 0.08) !important;
}

.custom-dropdown .logout-btn-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 16px !important;
    color: #ef4444 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
}

.custom-dropdown .logout-btn-item:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

.custom-dropdown .badge-soon {
    font-size: 0.65rem !important;
    background: rgba(148, 163, 184, 0.15) !important;
    color: var(--text-muted, #94a3b8) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.custom-dropdown .user-display-name {
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
}

.custom-dropdown .user-email-text {
    font-size: 0.75rem !important;
    color: var(--text-muted, #94a3b8) !important;
    margin-bottom: 4px !important;
    word-break: break-all !important;
}

.custom-dropdown .staff-tag {
    display: inline-block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

.custom-dropdown .client-tag {
    display: inline-block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}
