* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0d;
    color: white;
}

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

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

/* Navbar fija (ventas) - siempre visible al hacer scroll */
.navbar.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #0d0d0d;
    border-bottom: 1px solid #222;
}
body.has-fixed-nav {
    padding-top: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: #f5a623;
    color: black;
    padding: 10px 15px;
    font-weight: bold;
    border-radius: 5px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

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

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ccc;
    transition: color 0.2s;
}

.nav-icon:hover {
    color: white;
}

.nav-icon-user {
    width: 44px;
    height: 44px;
    background: #f5a623;
    color: black;
    border-radius: 50%;
}

.nav-icon-user:hover {
    background: #e09520;
}

.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-cart-btn:hover {
    color: #f5a623;
}
.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f5a623;
    color: black;
    font-size: 11px;
    font-weight: bold;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
}

.nav-user-logged {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-user {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    z-index: 100;
}

.dropdown-user.open {
    display: block;
}

.dropdown-user-name {
    display: block;
    color: #ccc;
    font-size: 14px;
    margin-bottom: 8px;
}

.dropdown-user-name small {
    color: #888;
    font-size: 12px;
}

.dropdown-user-logout {
    width: 100%;
    background: transparent;
    color: #f5a623;
    border: 1px solid #f5a623;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-user-logout:hover {
    background: #f5a623;
    color: black;
}

.btn-logout {
    background: transparent;
    color: #f5a623;
    border: 1px solid #f5a623;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #f5a623;
    color: black;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
}

.hero-left {
    max-width: 50%;
}

.badge {
    background: #2c2c2c;
    color: #f5a623;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}

h1 {
    font-size: 90px;
    color: #f5a623;
    margin: 20px 0;
}

.hero-brand {
    font-size: clamp(5rem, 12vw, 10rem);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: bold;
    color: #f5a623;
    letter-spacing: -0.02em;
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: #f5a623;
    color: black;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background: #e09520;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-catalogo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chevron {
    transition: transform 0.2s;
}

.dropdown-catalogo.open .chevron {
    transform: rotate(180deg);
}

.dropdown-catalogo {
    position: relative;
}

.dropdown-catalogo-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-catalogo.open .dropdown-catalogo-menu {
    display: block;
}

.dropdown-catalogo-menu a {
    display: block;
    padding: 12px 16px;
    color: #ccc;
    transition: background 0.2s;
}

.dropdown-catalogo-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* CARDS */
.hero-right {
    display: flex;
    gap: 30px;
}

.card {
    position: relative;
    width: 250px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-style: italic;
    font-size: 20px;
}

/* CATÁLOGO */
.catalog-section {
    padding: 60px 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.catalog-section-alt {
    border-top: 1px solid #333;
}

/* Ocultar catálogo no seleccionado (Hombre/Mujer separados) */
.catalog-section.catalog-hidden {
    display: none !important;
}

.catalog-title {
    font-size: 32px;
    color: #f5a623;
    margin-bottom: 8px;
    font-style: italic;
}

.catalog-subtitle {
    color: #888;
    margin-bottom: 40px;
}

.catalog-category {
    margin-bottom: 48px;
}

.catalog-category-title {
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-style: italic;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    background: rgba(38,38,38,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #1a1a1a;
}

.product-btn-add {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f59e0b;
    color: black;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}

.product-btn-add:hover {
    background: #d97706;
    transform: scale(1.1);
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: white;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #f5a623;
}

@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .logo-text { font-size: 16px; }
    .logo-icon { padding: 8px 12px; }
    .nav-user-info .user-name { font-size: 14px; }
    .nav-user-info .user-rol { font-size: 11px; }
    body.has-fixed-nav { padding-top: 70px; }

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 40px 24px 48px;
        gap: 32px;
    }
    .hero-left { max-width: 100%; }
    .hero-brand { font-size: clamp(3rem, 12vw, 5rem); }
    .hero-right {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .card {
        width: 140px;
        height: 220px;
    }
    .card span { font-size: 14px; }

    /* Catálogo */
    .catalog-section {
        padding: 40px 24px 60px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card img {
        height: 260px;
    }
    .catalog-title { font-size: 24px; }
    .catalog-category-title { font-size: 18px; }

    /* Panel (clientes, ordenes) */
    .panel-main { padding: 24px 16px; }
    .panel-title { font-size: 22px; }
    .panel-buttons { grid-template-columns: 1fr; }
}

/* Móviles muy pequeños (< 480px) */
@media (max-width: 480px) {
    .navbar { padding: 12px 16px; }
    .hero { padding: 24px 16px 32px; }
    .card { width: 120px; height: 180px; }
    .catalog-section { padding: 24px 16px 40px; }
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .product-card img { height: 220px; }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: black;
    font-size: 14px;
}

/* PÁGINAS DE AUTENTICACIÓN */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-atras {
    color: #f5a623;
    font-size: 14px;
}

.link-atras:hover {
    text-decoration: underline;
}

.navbar .link-atras {
    margin-right: 20px;
}

.link-atras-top {
    position: absolute;
    top: 24px;
    left: 24px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #ccc;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #f5a623;
}

/* Texto guía persistente: siempre visible debajo del input */
.input-hint-group {
    position: relative;
}
.input-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 0;
}
.input-hint-group input:focus + .input-hint {
    color: #888;
}

.auth-forgot {
    margin-top: -8px;
    font-size: 14px;
}

.auth-forgot a {
    color: #f5a623;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

.error-msg {
    color: #e57373;
    font-size: 14px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer a {
    color: #f5a623;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.success-msg {
    color: #4caf50;
    font-size: 14px;
}

/* Panel por rol */
.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.nav-user-info .user-name {
    font-weight: bold;
    color: white;
}

.nav-user-info .user-rol {
    font-size: 12px;
    color: #f5a623;
}

.panel-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.panel-title {
    font-size: 28px;
    margin-bottom: 32px;
    color: #f5a623;
}

.panel-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    color: white;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
}
button.panel-btn {
    cursor: pointer;
    font: inherit;
}
a.panel-btn:hover,
button.panel-btn:hover {
    border-color: #f5a623;
    background: #222;
}

.panel-btn:hover {
    border-color: #f5a623;
    background: #222;
}

.panel-btn-icon {
    font-size: 40px;
}

.panel-btn-text {
    font-weight: bold;
}

.panel-btn-hint {
    font-size: 12px;
    color: #888;
}

@media (max-width: 480px) {
    .panel-main {
        padding: 20px 12px;
        max-width: 100%;
    }
    .panel-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* ========== Panel Admin: sidebar + dashboard ========== */
.panel-admin-body {
    display: flex;
    min-height: 100vh;
    background: #1a1a1a;
}
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: #111;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}
.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #222;
}
.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f5a623;
    font-weight: 700;
    font-size: 20px;
}
.admin-logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(245, 166, 35, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.admin-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.admin-nav-item:hover:not(.admin-nav-item--disabled) {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.admin-nav-item.active {
    background: rgba(245, 166, 35, 0.2);
    color: #f5a623;
}
.admin-nav-item--disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
.admin-nav-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.admin-nav-text {
    flex: 1;
    font-weight: 500;
}
.admin-nav-hint {
    font-size: 11px;
    color: #888;
}
.admin-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-user-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.admin-user-rol {
    font-size: 12px;
    color: #f5a623;
}
.admin-link-inicio {
    display: block;
    padding: 8px 0;
    color: #888;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.admin-link-inicio:hover {
    color: #f5a623;
}
.admin-btn-logout {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: transparent;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, color 0.2s;
}
.admin-btn-logout:hover {
    border-color: #f5a623;
    color: #f5a623;
}
.admin-main-wrap {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #1a1a1a;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 20px 24px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    flex-shrink: 0;
}
.admin-topbar-title {
    font-size: 22px;
    color: #f5a623;
    margin: 0;
    font-weight: 600;
}
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-topbar-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.admin-topbar-user-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.admin-topbar-user-rol {
    font-size: 12px;
    color: #f5a623;
}
.admin-dashboard {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.dashboard-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}
.dashboard-card:hover {
    border-color: #333;
}
.dashboard-card-clickable {
    cursor: pointer;
}
.dashboard-card-clickable:hover {
    border-color: #f5a623;
}
.dashboard-card-header {
    margin-bottom: 12px;
}
.dashboard-card-title {
    font-size: 14px;
    color: #888;
    margin: 0;
    font-weight: 500;
}
.dashboard-card-body {
    margin: 0;
}
.dashboard-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}
.dashboard-card-label {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.dashboard-section {
    margin-bottom: 32px;
}
.dashboard-section-title {
    font-size: 18px;
    color: #eee;
    margin: 0 0 8px 0;
    font-weight: 600;
}
.dashboard-section-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px 0;
}
.dashboard-chart-placeholder {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
}
.dashboard-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    margin-bottom: 16px;
}
.dashboard-chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 20px;
}
.dashboard-chart-bar-wrap::after {
    content: attr(data-mes);
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}
.dashboard-chart-bar {
    width: 100%;
    max-width: 28px;
    min-height: 4px;
    background: linear-gradient(180deg, #f5a623 0%, rgba(245, 166, 35, 0.5) 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.2s;
}
.dashboard-chart-note {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.dashboard-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dashboard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
}
.dashboard-summary-label {
    font-size: 14px;
    color: #ccc;
}
.dashboard-summary-value {
    font-size: 13px;
    color: #888;
}
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main-wrap {
        margin-left: 0;
    }
    .admin-sidebar-toggle {
        display: flex;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .panel-admin-body,
    .admin-main-wrap,
    .admin-dashboard,
    .panel-main {
        overflow-x: hidden;
    }
    .admin-dashboard {
        padding: 16px;
    }
    .admin-topbar {
        padding: 28px;
        justify-content: center;
    }
    .admin-topbar-title {
        font-size: 18px;
        text-align: center;
        width: 100%;
    }
}

.panel-btn-catalogo {
    position: relative;
    cursor: pointer;
    padding: 0;
}

.panel-btn-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
}

.panel-btn-inner .chevron {
    margin-top: 4px;
}

.panel-dropdown-menu {
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    min-width: 100%;
}

.panel-placeholder {
    color: #888;
    font-size: 16px;
}

/* Modal sesión expirada (SCRUM-36) */
.modal-sesion-expirada {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-sesion-expirada.visible {
    opacity: 1;
}

.modal-sesion-contenido {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    text-align: center;
}

.modal-sesion-icono {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.modal-sesion-contenido h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #f5a623;
}

.modal-sesion-contenido p {
    color: #aaa;
    margin-bottom: 24px;
    font-size: 14px;
}

/* CARRITO - Sidebar */
/* Modal Pedidos de hoy */
.modal-pedidos-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.modal-pedidos-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-pedidos-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-pedidos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #222;
}
.modal-pedidos-header h2 {
    font-size: 20px;
    color: #f5a623;
    margin: 0;
}
.modal-pedidos-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.modal-pedidos-close:hover {
    color: #fff;
}
.modal-pedidos-body {
    padding: 20px 24px;
    overflow-y: auto;
}
.modal-pedidos-empty {
    color: #888;
    text-align: center;
    margin: 0;
}
.modal-pedidos-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    align-items: center;
}
.modal-pedidos-item:last-child {
    border-bottom: none;
}
.modal-pedidos-item-num {
    font-weight: 600;
    color: #f5a623;
    min-width: 50px;
}
.modal-pedidos-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #aaa;
}
.modal-pedidos-item-info span:last-child {
    color: #fff;
    font-weight: 500;
}
.modal-pedidos-item-fecha {
    font-size: 12px;
    color: #666;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100%;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}
.cart-header h2 {
    font-size: 20px;
    color: #f5a623;
}
.cart-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.cart-close:hover {
    color: white;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-empty {
    color: #888;
    text-align: center;
    padding: 40px 0;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    display: block;
    color: white;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-item-price {
    font-size: 12px;
    color: #888;
}
.cart-item-size {
    display: block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    max-width: 80px;
}
.cart-item-size:hover,
.cart-item-size:focus {
    border-color: #f5a623;
    outline: none;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #444;
    background: #222;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.cart-qty-btn:hover {
    background: #333;
}
.cart-qty {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
}
.cart-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #e57373;
    cursor: pointer;
    font-size: 18px;
}
.cart-remove:hover {
    color: #ff8a8a;
}
.cart-add-variant {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 11px;
    background: transparent;
    border: 1px dashed #f5a623;
    color: #f5a623;
    border-radius: 4px;
    cursor: pointer;
}
.cart-add-variant:hover {
    background: rgba(245, 166, 35, 0.15);
}
.cart-cliente-section {
    padding: 16px 20px;
    border-top: 1px solid #333;
    background: #151515;
    max-height: 320px;
    overflow-y: auto;
}
.cart-cliente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.cart-cliente-title {
    font-size: 16px;
    color: #f5a623;
    margin: 0;
}
.cart-cliente-cerrar {
    padding: 6px 12px;
    font-size: 12px;
    background: transparent;
    border: 1px solid #555;
    color: #888;
    border-radius: 4px;
    cursor: pointer;
}
.cart-cliente-cerrar:hover {
    color: white;
    border-color: #777;
}
.cart-cliente-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.cart-cliente-search input {
    flex: 1;
    padding: 12px 14px;
    font-size: 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
}
.cart-cliente-search input:focus {
    outline: none;
    border-color: #f5a623;
}
.cart-cliente-search .btn-buscar {
    padding: 12px 20px;
    background: #f5a623;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.cart-cliente-search .btn-buscar:hover {
    background: #e09520;
}
.cart-cliente-found {
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 12px;
}
.cart-cliente-found p {
    margin: 6px 0;
    font-size: 14px;
    color: #ddd;
}
.cart-cliente-found .cliente-nombre {
    font-weight: bold;
    color: #f5a623;
    font-size: 15px;
}
.cart-cliente-toggle {
    margin-top: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}
.cart-cliente-toggle:hover {
    color: #f5a623;
}
.cart-cliente-capturar-wrap {
    margin-top: 12px;
}
.btn-crear-cliente {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    color: #f5a623;
    border: 1px dashed #f5a623;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-crear-cliente:hover {
    background: rgba(245, 166, 35, 0.15);
    color: #ffb84d;
}
.cart-cliente-volver {
    display: inline-block;
    margin-top: 12px;
}
.cart-cliente-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.cart-cliente-form .form-group {
    margin-bottom: 0;
}
.cart-cliente-form .form-group.full-width {
    grid-column: 1 / -1;
}
.cart-cliente-form label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
}
.cart-cliente-form input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
}
.cart-cliente-form input:focus {
    outline: none;
    border-color: #f5a623;
}
.btn-cart-receipt {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: transparent;
    color: #f5a623;
    border: 1px solid #f5a623;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}
.btn-cart-receipt:hover {
    background: rgba(245, 166, 35, 0.15);
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #333;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 18px;
}
.cart-total strong {
    color: #f5a623;
}
.btn-cart-checkout {
    width: 100%;
    padding: 14px;
    background: #f5a623;
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}
.btn-cart-checkout:hover {
    background: #e09520;
}

@media (max-width: 768px) {
    .cart-cliente-search {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-cliente-search .btn-buscar {
        width: 100%;
        text-align: center;
    }
}

/* MODAL SELECCIÓN DE TALLA */
.size-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.size-modal.open {
    opacity: 1;
    visibility: visible;
}
.size-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
}
.size-modal-content h3 {
    font-size: 18px;
    color: #f5a623;
    margin-bottom: 16px;
}
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.size-btn {
    padding: 12px 18px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.size-btn:hover {
    background: #222;
    border-color: #f5a623;
}
.size-modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* CHECKOUT MODAL - Datos cliente */
.checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.checkout-modal.open {
    opacity: 1;
    visibility: visible;
}
.checkout-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
}
.checkout-modal-content h2 {
    font-size: 22px;
    color: #f5a623;
    margin-bottom: 8px;
}
.checkout-hint {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}
.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 500px) {
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Tablas responsive (clientes, ordenes) - scroll horizontal en móvil */
@media (max-width: 768px) {
    .panel-main .crud-section { padding: 16px; }
    .crud-toolbar { flex-direction: column; }
    .crud-toolbar input,
    .crud-toolbar select,
    .crud-toolbar .btn { width: 100%; max-width: 100%; }
    #tabla-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .crud-table { min-width: 500px; }
}
.checkout-form .form-group {
    margin-bottom: 16px;
}
.checkout-form label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 6px;
}
.checkout-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    font-size: 16px;
}
.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: #f5a623;
}
.checkout-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.checkout-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.checkout-actions .btn-secondary {
    flex: 1;
}
.checkout-actions .btn-primary {
    flex: 1;
    background: #f5a623;
    color: black;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}
.checkout-actions .btn-primary:hover {
    background: #e09520;
}

/* Toast de bienvenida */
.welcome-toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background: #f5a623;
    color: black;
    padding: 10px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    font-size: 15px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.welcome-toast.visible {
    transform: translate(-50%, 0);
}

/* Toast genérico para feedback (éxito, error, info) */
.toast-feedback {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast-feedback.visible {
    transform: translate(-50%, 0);
    opacity: 1;
}
.toast-feedback.success {
    background: #4caf50;
    color: white;
}
.toast-feedback.error {
    background: #e57373;
    color: white;
}
.toast-feedback.info {
    background: #2196f3;
    color: white;
}

/* Toast confirmación registro (SCRUM-12) */
.registro-success-toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background: #2d7a3e;
    color: white;
    padding: 14px 28px;
    border-radius: 0 0 10px 10px;
    font-weight: bold;
    font-size: 15px;
    z-index: 2001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.35s ease;
    max-width: 90%;
    text-align: center;
}
.registro-success-toast.visible {
    transform: translate(-50%, 0);
}

/* Modal Registro usuario (SCRUM-12) */
.modal-registro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.modal-registro-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-registro-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-registro-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
}
.modal-registro-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #111;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.modal-registro-tab.active {
    background: #f5a623;
    border-color: #f5a623;
    color: #000;
}
.modal-registro-tab-panel[hidden] {
    display: none !important;
}
@media (max-width: 480px) {
    .modal-registro-tabs {
        flex-direction: column;
    }
}
/* Mensaje de éxito centrado en el panel de registro */
.modal-registro-success-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px;
    text-align: center;
}
.modal-registro-success-center[hidden] {
    display: none !important;
}
.modal-registro-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2d7a3e;
    color: white;
    font-size: 48px;
    font-weight: bold;
    line-height: 80px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(45, 122, 62, 0.5);
}
.modal-registro-success-text {
    font-size: 20px;
    font-weight: bold;
    color: #6fcf72;
    margin: 0;
    line-height: 1.4;
    max-width: 360px;
}

.modal-registro-content h2 {
    font-size: 22px;
    color: #f5a623;
    margin-bottom: 8px;
}
.modal-registro-hint {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}
.modal-registro-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.modal-registro-alert.hidden,
.modal-registro-alert[hidden] {
    display: none;
}
.modal-registro-alert.error {
    background: rgba(200, 60, 60, 0.2);
    border: 1px solid #c44;
    color: #f88;
}
.modal-registro-alert.success {
    background: rgba(60, 160, 80, 0.2);
    border: 1px solid #4a4;
    color: #8f8;
}
.form-registro .form-group {
    margin-bottom: 16px;
}
.form-registro label {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 6px;
}
.form-registro input,
.form-registro select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0d0d0d;
    color: white;
    font-size: 16px;
}
.form-registro input:focus,
.form-registro select:focus {
    outline: none;
    border-color: #f5a623;
}
.form-registro select {
    cursor: pointer;
}
.input-hint-small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.form-group-terminos {
    margin-top: 8px;
    margin-bottom: 20px;
}
.terminos-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
}
.terminos-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #f5a623;
    cursor: pointer;
}
.terminos-label a {
    color: #f5a623;
    text-decoration: underline;
}
.terminos-label a:hover {
    color: #e09520;
}

@media (max-width: 480px) {
    .form-registro input,
    .form-registro select {
        font-size: 15px;
        padding: 12px 14px;
        min-height: 44px;
        box-sizing: border-box;
    }
}
.modal-registro-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}
.btn-registro-cancelar {
    padding: 12px 20px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #222;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
}
.btn-registro-cancelar:hover {
    background: #333;
    color: white;
}
.btn-registro-enviar {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #f5a623;
    color: black;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}
.btn-registro-enviar:hover {
    background: #e09520;
}

.usuarios-search-bar {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.4fr;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
}
.usuarios-search-bar .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.usuarios-search-bar .form-group label {
    font-size: 14px;
    color: #ccc;
}
.usuarios-search-bar .form-group input,
.usuarios-search-bar .form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #eee;
    font-size: 14px;
    min-height: 44px;
    height: 44px;
}
.usuarios-search-bar .form-group select {
    cursor: pointer;
    appearance: auto;
}
.usuarios-search-bar .form-group input:focus,
.usuarios-search-bar .form-group select:focus {
    outline: none;
    border-color: #f5a623;
}
@media (max-width: 600px) {
    .usuarios-search-bar {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .usuarios-search-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .usuarios-search-actions .btn-registro-enviar,
    .usuarios-search-actions .btn-registro-cancelar {
        width: 100%;
        text-align: center;
    }
}
.usuarios-table-wrapper {
    border-radius: 10px;
    border: 1px solid #333;
    overflow-x: auto;
}
.usuarios-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.usuarios-table thead {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1;
}
.usuarios-table th,
.usuarios-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #222;
    text-align: left;
}
.usuarios-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
}
.usuarios-table tbody tr[data-id] {
    cursor: pointer;
}
.usuarios-table tbody tr[data-id]:hover {
    background: rgba(255,255,255,0.04);
}
.usuarios-empty {
    text-align: center;
    color: #888;
    padding: 20px 16px;
    font-size: 14px;
}
.usuarios-empty.usuarios-empty--no-existe {
    color: #e0a040;
    font-size: 15px;
    font-weight: 500;
    background: rgba(224, 160, 64, 0.08);
}

@media (max-width: 768px) {
    .usuarios-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .usuarios-table {
        min-width: 700px;
    }
}
.usuarios-busqueda-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}
.usuarios-busqueda-alert--empty {
    background: rgba(224, 160, 64, 0.18);
    border: 1px solid rgba(224, 160, 64, 0.4);
    color: #e8b858;
}
.usuarios-busqueda-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(224, 160, 64, 0.35);
    color: #1a1a1a;
    font-weight: 700;
    flex-shrink: 0;
}
.usuarios-busqueda-alert-text {
    flex: 1;
}
.usuarios-actions {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}
.usuarios-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #ccc;
}
.usuarios-actions-buttons {
    display: flex;
    gap: 8px;
}
.clientes-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
    color: #ccc;
}
.usuarios-row-selected {
    background: rgba(245, 166, 35, 0.28);
    box-shadow: inset 0 0 0 2px rgba(245, 166, 35, 0.5);
}
.usuarios-row-selected td {
    color: #fff;
}
.btn-usuario-editar,
.btn-usuario-eliminar,
.btn-usuario-limpiar {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #444;
    background: #111;
    color: #ddd;
    font-size: 12px;
    cursor: pointer;
}
.btn-usuario-editar:hover {
    border-color: #f5a623;
    color: #f5a623;
}
.btn-usuario-eliminar {
    border-color: #733;
    color: #f88;
}
.btn-usuario-eliminar:hover {
    background: #300;
}
.btn-usuario-limpiar:hover {
    border-color: #666;
    color: #fff;
}

/* ===========================
   Accesibilidad global (web + móvil)
   =========================== */

.a11y-widget-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 1400;
    padding: 0;
}
.a11y-widget-toggle .a11y-toggle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7a7a7a;
    box-shadow: 0 0 0 2px rgba(122, 122, 122, 0.5);
}
.a11y-widget-toggle .a11y-toggle-icon svg {
    display: block;
}
.a11y-widget-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.a11y-widget-panel {
    position: fixed;
    right: 16px;
    left: auto;
    bottom: 72px;
    width: 300px;
    max-width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
    background: #111;
    border-radius: 14px;
    border: 1px solid #333;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
    color: #f5f5f5;
    font-size: 13px;
    z-index: 1399;
}
.a11y-widget-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.a11y-widget-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.a11y-widget-reset {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #444;
    background: transparent;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a11y-widget-reset:hover {
    background: #252525;
    color: #f5a623;
    border-color: #f5a623;
}
.a11y-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #f5a623;
    margin: 0;
}
.a11y-widget-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5a623;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.a11y-widget-close:hover {
    background: #e09520;
    color: #fff;
}
.a11y-panel-section {
    margin-bottom: 14px;
}
.a11y-panel-section:last-of-type {
    margin-bottom: 10px;
}
.a11y-panel-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin: 0 0 8px 0;
}
.a11y-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}
.a11y-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.a11y-toggle-group--full {
    grid-column: 1 / -1;
    margin-top: 4px;
}
.a11y-toggle-icon-small {
    font-size: 14px;
    color: #f5a623;
    line-height: 1;
}
.a11y-widget-section {
    margin-bottom: 10px;
}
.a11y-widget-section:last-child {
    margin-bottom: 0;
}
.a11y-widget-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #ddd;
    font-size: 12px;
}
.a11y-widget-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.a11y-chip {
    flex: 1 1 0;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1c1c1c;
    color: #e0e0e0;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}
/* Filas con 4 chips (ej. Color del texto): grid 2x2 para que el texto no se corte */
.a11y-widget-row[data-a11y-group="textColor"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.a11y-widget-row[data-a11y-group="textColor"] .a11y-chip {
    min-width: 0;
}
.a11y-chip:hover {
    background: #252525;
    border-color: #444;
}
.a11y-chip--active {
    border-color: #f5a623;
    background: rgba(245, 166, 35, 0.2);
    color: #ffd58a;
}
.a11y-widget-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1b1b1b;
    color: #f0f0f0;
    font-size: 12px;
}
.a11y-slider-row {
    margin-bottom: 10px;
}
.a11y-slider-row:last-child {
    margin-bottom: 0;
}
.a11y-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.a11y-slider {
    flex: 1;
    min-width: 0;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 3px;
}
.a11y-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f5a623;
    cursor: pointer;
    border: none;
}
.a11y-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f5a623;
    cursor: pointer;
    border: none;
}
.a11y-slider-value {
    min-width: 38px;
    font-size: 12px;
    color: #aaa;
    text-align: right;
}
.a11y-slider-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #252525;
    color: #f5a623;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.a11y-slider-btn:hover {
    background: #333;
    border-color: #f5a623;
}
.a11y-widget-note {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}

@media (max-width: 600px) {
    .a11y-widget-toggle {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .a11y-widget-panel {
        right: 10px;
        left: auto;
        bottom: 64px;
        max-width: calc(100% - 20px);
    }
}

/* Modos aplicados a toda la pantalla (html + body) */

/* Tamaño de letra: toda la pantalla vía raíz */
html[data-a11y-font-size="large"] {
    font-size: 112%;
}
html[data-a11y-font-size="xlarge"] {
    font-size: 125%;
}

/* Tipo de letra: toda la pantalla */
html[data-a11y-font-family="sans"],
html[data-a11y-font-family="sans"] *,
body[data-a11y-font-family="sans"],
body[data-a11y-font-family="sans"] * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
html[data-a11y-font-family="serif"],
html[data-a11y-font-family="serif"] *,
body[data-a11y-font-family="serif"],
body[data-a11y-font-family="serif"] * {
    font-family: "Georgia", "Times New Roman", serif !important;
}

/* Alto contraste */
body[data-a11y-contrast="high"],
body[data-a11y-contrast="high"] .panel-admin-body,
body[data-a11y-contrast="high"] .panel-main,
body[data-a11y-contrast="high"] .admin-sidebar,
body[data-a11y-contrast="high"] .admin-topbar,
body[data-a11y-contrast="high"] .admin-dashboard {
    background-color: #000 !important;
    color: #fff !important;
}
body[data-a11y-contrast="high"] .btn,
body[data-a11y-contrast="high"] .btn-primary-crud,
body[data-a11y-contrast="high"] .btn-secondary {
    border-color: #fff !important;
}

/* Tema claro: pantalla en blanco */
html[data-a11y-theme="light"],
body[data-a11y-theme="light"],
body[data-a11y-theme="light"] .panel-admin-body,
body[data-a11y-theme="light"] .admin-main-wrap,
body[data-a11y-theme="light"] .admin-dashboard,
body[data-a11y-theme="light"] .admin-sidebar,
body[data-a11y-theme="light"] .admin-topbar,
body[data-a11y-theme="light"] .panel-main,
body[data-a11y-theme="light"] .auth-container,
body[data-a11y-theme="light"] .navbar,
body[data-a11y-theme="light"] .hero,
body[data-a11y-theme="light"] .crud-section,
body[data-a11y-theme="light"] .modal-box,
body[data-a11y-theme="light"] .cart-sidebar {
    background-color: #f5f5f5 !important;
    background: #f5f5f5 !important;
}
body[data-a11y-theme="light"],
body[data-a11y-theme="light"] *,
body[data-a11y-theme="light"] .admin-nav-item,
body[data-a11y-theme="light"] .admin-topbar-title,
body[data-a11y-theme="light"] .dashboard-card-title,
body[data-a11y-theme="light"] .panel-title,
body[data-a11y-theme="light"] .crud-table th,
body[data-a11y-theme="light"] .crud-table td,
body[data-a11y-theme="light"] input,
body[data-a11y-theme="light"] select,
body[data-a11y-theme="light"] label,
body[data-a11y-theme="light"] .auth-title,
body[data-a11y-theme="light"] .hero-brand,
body[data-a11y-theme="light"] a {
    color: #1a1a1a !important;
}
body[data-a11y-theme="light"] .admin-sidebar {
    border-right-color: #ddd;
}
body[data-a11y-theme="light"] .crud-table,
body[data-a11y-theme="light"] input,
body[data-a11y-theme="light"] select {
    border-color: #ccc !important;
    background-color: #fff !important;
}

/* Color del texto (todas las interfaces) */
body[data-a11y-text-color="black"] *,
body[data-a11y-text-color="black"] {
    color: #111 !important;
}
body[data-a11y-text-color="white"] *,
body[data-a11y-text-color="white"] {
    color: #fff !important;
}
body[data-a11y-text-color="white"] input,
body[data-a11y-text-color="white"] select,
body[data-a11y-text-color="white"] textarea {
    background: #333 !important;
    border-color: #555 !important;
}
body[data-a11y-text-color="blue"] *,
body[data-a11y-text-color="blue"] {
    color: #001f3f !important;
}
body[data-a11y-text-color="blue"] input,
body[data-a11y-text-color="blue"] select,
body[data-a11y-text-color="blue"] textarea {
    color: #001f3f !important;
}

/* El panel de accesibilidad mantiene fondo oscuro para legibilidad */
.a11y-widget-panel {
    background: #111;
    color: #f5f5f5;
}
body[data-a11y-theme="light"] .a11y-widget-panel,
body[data-a11y-theme="light"] .a11y-widget-panel * {
    background-color: transparent !important;
    color: #f0f0f0 !important;
}
body[data-a11y-theme="light"] .a11y-widget-panel {
    background: #1a1a1a !important;
    border-color: #333;
}
body[data-a11y-theme="light"] .a11y-widget-panel .a11y-chip {
    background: #2a2a2a !important;
    border-color: #444 !important;
}
body[data-a11y-theme="light"] .a11y-widget-panel .a11y-widget-select {
    background: #2a2a2a !important;
    color: #f0f0f0 !important;
    border-color: #444 !important;
}
