/*-----------------------------------------------------------------------------------
    Project: CUMULO ADMIN — Estilos Consolidados
-------------------------------------------------------------------------------------
    01. Tipografías
    02. Variables y Reset
    03. Layout Core (Sidebar, Navbar, Footer, Main)
    04. Dashboard Cards y Estadísticas
    05. Formularios Compartidos
    06. Tablas y Toolbar
    07. Modales
    08. Botones Compartidos
    09. Auth
    10. Usuarios
    11. Perfil
    12. Productos
    13. Ventas y Órdenes
    14. Crear Orden
    15. Analytics
    16. Pago
    17. Animaciones
-------------------------------------------------------------------------------------*/


/* =========================================================================
   01. TIPOGRAFÍAS
   ========================================================================= */

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Cerapro/Cera-Pro-Light.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/Cerapro/Cera-Pro-Regular.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Cerapro/Cera-Pro-Medium.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Cerapro/Cera-Pro-Bold.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/Cerapro/Cera-Pro-Bold.otf');
}

@font-face {
    font-family: 'Cera-pro';
    font-style: normal;
    font-weight: 900;
    src: url('/fonts/Cerapro/Cera-Pro-Black.otf');
}


/* =========================================================================
   02. VARIABLES Y RESET
   ========================================================================= */

:root {
    --color-primary: #30C3EA;
    --color-secondary: #56C2BB;
    --color-success: #8BC97E;
    --color-warning: #FFD007;
    --color-danger: #E74C3C;
    --color-dark-blue: #2B92D0;
    --color-bg-dark: #20224A;
    --color-white: #FFFFFF;
    --color-black: #222222;
    --color-text-dark: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-border-opacity: rgba(229, 231, 235, 0.8);
    --color-bg-light: #f8fafc;
    --color-bg: #f3f4f6;
    --color-button-gray-bg: #f3f4f6;
    --color-button-gray-text: #374151;
    --color-success-bg: rgba(139, 201, 126, 0.2);
    --color-success-text: #3e7234;
    --color-inactive-bg: #f3f4f6;
    --color-inactive-text: var(--color-text-light);
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
}

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

body {
    font-family: 'Cera-pro', sans-serif;
    background-color: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* =========================================================================
   03. LAYOUT CORE (Sidebar, Navbar, Footer, Main)
   ========================================================================= */

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #20224A;
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar.visible {
    transform: translateX(0);
}

.sidebar-header {
    padding: 0 20px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: none;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding: 0 20px;
    font-family: 'Cera-pro', sans-serif;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    font-family: 'Cera-pro', sans-serif;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.nav-item.active .nav-link {
    background: #ffffff;
    color: #2B92D0;
    border-radius: 8px;
    margin: 0 15px;
    font-weight: 600;
}

.nav-icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    opacity: 1;
    font-size: 20px;
    color: white !important;
    fill: white !important;
}

.nav-item.active .nav-icon {
    opacity: 1;
    color: #2B92D0 !important;
    fill: #2B92D0 !important;
}

.sidebar-footer {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
    height: 48px;
    display: flex;
    align-items: center;
}

.logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #c1c1c1;
    text-decoration: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
    gap: 2px;
}

.logout-link:hover {
    color: #c1c1c1;
    text-decoration: none;
}

.logout-link .nav-icon {
    color: #c1c1c1 !important;
    fill: #c1c1c1 !important;
}

.logout-link span {
    color: #c1c1c1;
    font-family: 'Cera-pro', sans-serif;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Navbar (merged navbar.css + header.css) --- */
.navbar,
.dashboard-header {
    background: #20224A;
    background-color: #20224A;
    height: 70px;
    width: auto;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
}

.navbar.sidebar-closed,
.dashboard-header.sidebar-closed {
    left: 0;
}

body.sidebar-hidden .navbar,
body.sidebar-hidden .dashboard-header {
    left: 0;
}

.navbar-container,
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
}

.header-container {
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-left,
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-left {
    background-color: rgba(255, 255, 255, 0.1);
    height: 100%;
    padding: 0 20px 0 20px;
    margin-left: -20px;
    border-radius: 0;
}

.hamburger-menu {
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.hamburger-menu svg {
    display: block;
    margin: 0 auto;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #e5e7eb;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.header-logo .logo-img {
    height: 35px;
    width: auto;
}

.navbar-right,
.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
}

.user-profile-dropdown {
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.user-profile:hover {
    background-color: #f8f9fa;
}

.user-profile-link {
    text-decoration: none;
}

.user-avatar {
    width: 35px;
    height: 32px;
    border-radius: 50%;
    overflow: visible;
}

.avatar-img {
    width: 40px;
    height: 40px;
    -o-object-fit: cover;
       object-fit: cover;
    margin: -4px 0 0 -10px;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    color: #20224A;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.user-email {
    color: #666666;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.user-profile:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* --- Footer --- */
.dashboard-footer {
    background: #ffffff;
    padding: 12px 30px;
    margin-left: 250px;
    position: relative;
    z-index: 100;
    height: 48px;
    display: flex;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.footer-left p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
}

.footer-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #2B3674;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Cera-pro', sans-serif;
}

/* --- Main Content --- */
.main-content {
    margin-left: 250px;
    margin-top: 70px;
    min-height: calc(100vh - 118px);
    padding: 0;
}

.main-content.sidebar-closed {
    margin-left: 0;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: transparent;
    padding: 20px 30px 0 30px;
    margin: 0;
    width: 100%;
    position: relative;
    top: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item.current {
    color: #000000;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #d1d5db;
}

.dashboard-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================================
   04. DASHBOARD CARDS Y ESTADÍSTICAS
   ========================================================================= */

/* Page Header */
.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header-left {
    flex: 1;
}

.page-header-right {
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.page-date {
    font-size: 14px;
    color: #222222;
    font-weight: 500;
    background: transparent;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 280px));
    grid-auto-rows: min-content;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
    justify-content: start;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 60px;
    max-width: 280px;
    width: 100%;
}

a.stat-card {
    text-decoration: none;
}

a.stat-card .stat-label {
    color: #6b7280;
}

a.stat-card .stat-number {
    color: #1f2937;
}

a.stat-card:hover,
a.stat-card:visited,
a.stat-card:active {
    color: inherit;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.users-card .stat-icon {
    background: rgba(48, 195, 234, 0.2);
}

.products-card .stat-icon {
    background: rgba(86, 194, 187, 0.2);
}

.sales-card .stat-icon {
    background: rgba(255, 208, 7, 0.2);
}

.analytics-card .stat-icon {
    background: rgba(139, 92, 246, 0.2);
}

.analytics-card .stat-icon .material-symbols-rounded {
    color: #7c3aed;
    font-size: 24px;
}

.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin: 0;
}

.stat-label {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.stat-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Dashboard Content Card */
.dashboard-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.content-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.content-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.content-placeholder p {
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================================
   05. FORMULARIOS COMPARTIDOS
   ========================================================================= */

/* Validation (from validation.css) */
.validation-message {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Custom Select (from custom-select.css) */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.select-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.select-display:hover {
    border-color: #2B92D0;
}

.custom-select.open .select-display {
    border-color: #2B92D0;
    box-shadow: 0 0 0 3px rgba(43, 146, 208, 0.1);
}

.select-placeholder {
    color: #666;
    font-size: 14px;
}

.select-arrow {
    color: #666;
    transition: transform 0.3s ease;
}

.custom-select .select-arrow {
    position: static;
    transform: none;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.select-dropdown.active {
    display: block;
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    background-color: #f8f9fa;
}

.select-option.selected {
    background-color: #e3f2fd;
    color: #2B92D0;
    font-weight: 500;
}

.select-option.selected::after {
    content: "✓";
    float: right;
    color: #2B92D0;
    font-weight: bold;
}

/* Selected Services List */
.selected-services-list {
    margin-top: 12px;
}

.selected-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.selected-service-item:hover {
    background: #e9ecef;
}

.service-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.remove-service {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-service:hover {
    background-color: #f8d7da;
}

.remove-service svg {
    width: 16px;
    height: 16px;
}


/* =========================================================================
   06. TABLAS Y TOOLBAR (shared: dashboard/users, sales, products)
   ========================================================================= */

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
}

.search-icon {
    font-size: 20px;
    color: #9ca3af;
    margin-right: 8px;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 400;
}

.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--color-text-light);
    gap: 8px;
    font-weight: 400;
}

.pagination-info select {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    outline: none;
    background: var(--color-white);
    font-family: 'Cera-pro', sans-serif;
}

.table-footer {
    padding-top: 20px;
    text-align: center;
}

.view-all-link {
    color: var(--color-dark-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--color-primary);
}


/* =========================================================================
   07. MODALES
   ========================================================================= */

/* --- Side Modal (slide-out, shared users/sales/products) --- */
.side-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-modal.open {
    visibility: visible;
    opacity: 1;
}

.modal-form-container {
    background: var(--color-white);
    width: 571px;
    height: 100%;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.50s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-modal.open .modal-form-container {
    transform: translateX(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.modal-title {
    font-family: 'Cera-pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--color-bg-dark);
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-bg-dark);
}

.modal-close-btn .icon-lg {
    font-size: 30px;
}

.modal-form {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    font-family: 'Cera-pro', sans-serif;
}

.form-section-title {
    font-family: 'Cera-pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text-dark);
    margin: 20px 0 15px;
}

.form-section-title:first-of-type {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-dark);
}

.form-group .required {
    font-weight: 400;
    color: #6b7280;
    font-size: 13px;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="password"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-dark);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: background 0.2s;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
}

input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-bg-light);
    background: var(--color-bg-light);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.2s ease;
    letter-spacing: 2px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 40px;
}

.input-with-icon .input-icon-end {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
    font-size: 20px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    gap: 15px;
    background: var(--color-white);
}

/* --- Center Modal (from sales.css) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    padding: 24px 30px 30px 30px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-content img {
    overflow: clip;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-title-user {
    display: grid;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-inactive-text);
    margin: 0;
}

.modal-title-user span {
    text-transform: none;
    font-weight: 700;
    font-size: 22px;
    color: var(--color-bg-dark);
}

.modal-close-link {
    font-family: 'Cera-pro', sans-serif;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-link:hover {
    color: var(--color-text-dark);
}

.modal-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.pagination-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-gray-text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn:hover {
    background: #e5e7eb;
}

.pagination-btn .material-symbols-rounded {
    font-size: 18px;
}


/* =========================================================================
   08. BOTONES COMPARTIDOS
   ========================================================================= */

.btn-cancel {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    font-family: 'Cera-pro', sans-serif;
}

.btn-cancel:hover {
    color: var(--color-text-dark);
}

.btn-save {
    background: var(--color-success);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(139, 201, 126, 0.3);
    transition: background 0.2s;
    font-family: 'Cera-pro', sans-serif;
}

.btn-save:hover {
    background: #a4d89a;
}

.btn-delete {
    background: var(--color-white);
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: 'Cera-pro', sans-serif;
}

.btn-delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f1f1f1;
}

.action-btn .material-symbols-rounded {
    font-size: 18px;
    color: #6b7280;
}


/* =========================================================================
   09. AUTH
   ========================================================================= */

/* Auth body override */
body.auth-body {
    background: #f8f9fa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f8f9fa;
    padding: 20px;
    box-sizing: border-box;
}

/* Layout */
.main-container {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    min-height: 480px;
    margin-top: 0;
}

.login-section .main-container {
    max-width: 950px;
    min-height: 550px;
}

.login-section .login-container {
    padding: 92px 45px 100px 96px;
}

.login-container {
    padding: 25px 50px 25px 60px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.svg-container {
    width: 50%;
    background: transparent;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    padding-top: 15px;
    position: relative;
}

/* Branding */
.brand-logo {
    display: block;
    position: relative;
    top: -15px;
    margin: 0 0 3px 0px;
    height: 50px;
    width: auto;
    max-width: 200px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    margin-bottom: 12px;
    position: relative;
    top: 10px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: normal;
    word-spacing: normal;
    position: relative;
    top: 12px;
}

.subtitle-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.subtitle-content {
    flex: 1;
}

.info-icon-container {
    width: 100%;
    height: 100%;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-icon-container:hover {
    transform: translateY(-2px);
}

.info-icon {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    border-radius: 15px;
    overflow: hidden;
}

/* Auth Form Controls */
.login-container .form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.form-label.active {
    color: #2B92D0;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-control[type="password"] {
    letter-spacing: 0.1em;
    font-family: 'Cera-pro', monospace;
}

.form-control:focus {
    outline: none;
    border-color: #2B92D0;
    box-shadow: 0 0 0 4px rgba(43, 146, 208, 0.1);
}

.form-control::-moz-placeholder {
    color: #999999;
}

.form-control::placeholder {
    color: #999999;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    font-size: 14px;
    color: #ef4444;
    margin-top: 6px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Auth Password */
.password-group {
    position: relative;
}

.forgot-password,
.back-to-login {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    color: #999999;
    text-decoration: none;
    border-bottom: 1px solid #999999;
    padding-bottom: 1px;
}

.forgot-password:hover,
.back-to-login:hover {
    color: #2B92D0;
    border-bottom-color: #2B92D0;
}

/* Auth Buttons */
.btn-login,
.btn-reset {
    width: 100%;
    background: #2B92D0;
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: normal;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 16px;
    position: relative;
    white-space: nowrap;
    height: 56px;
}

.btn-login:hover,
.btn-reset:hover {
    background: #1E7BB8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 146, 208, 0.3);
}

.btn-login span,
.btn-reset span {
    flex: 1;
    text-align: center;
    margin-left: 8px;
    margin-right: 34px;
    font-size: 14px;
    font-weight: 200;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.btn-icon img {
    filter: brightness(0) saturate(100%) invert(11%) sepia(100%) saturate(4000%) hue-rotate(220deg) brightness(90%) contrast(120%);
}

/* Hero Text */
.hero-text-container {
    position: absolute;
    top: 40px;
    left: 70px;
    z-index: 10;
    line-height: 1.3;
    text-align: left;
    max-width: 350px;
    white-space: nowrap;
}

.white-text {
    font-size: 35px;
    font-weight: 450;
    color: white;
    margin: 0 0 6px 0;
    display: block;
    letter-spacing: 2px;
    font-style: italic;
    transform: translateY(12px) translateX(-13px);
}

.gradient-text {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(90deg, #30C3EA 9%, #FDDD09 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: block;
    letter-spacing: 0.5px;
    transform: translateY(12px) translateX(-13px);
}

/* Side Card */
.side-card {
    position: absolute;
    bottom: 30px;
    right: 250px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    width: 54px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.side-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.side-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-card-icon:hover {
    background: transparent;
    transform: scale(1.08);
    box-shadow: none;
}

.svg-icon {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.side-card-icon:hover .svg-icon {
    opacity: 1;
}

/* Features Section */
.features-section {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 40px 12px 40px 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
    max-width: 210px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.features-content {
    display: flex;
    flex-direction: column;
}

.features-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.cumulo-icon {
    width: 22px;
    height: auto;
    opacity: 1;
    transform: translateY(-12px) translateX(6px);
    filter: brightness(0.7) contrast(1.2);
}

.features-main {
    flex: 1;
}

.features-title {
    font-size: 10px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    text-align: right;
    padding-right: 8px;
}

.features-title-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 0 auto 12px auto;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
    flex-direction: row-reverse;
}

.feature-text {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-align: right;
    padding-right: 4px;
}

.feature-separator {
    width: 100px;
    height: 1px;
    background: #d1d5db;
    margin: 0 8px;
    flex-shrink: 0;
}

.subtitle-divider {
    width: 280px;
    height: 1px;
    background: #d1d5db;
    margin: 16px 0;
}

.feature-checkmark {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.feature-item.active .feature-text {
    color: #2B92D0;
    transition: color 0.8s ease-in-out;
}

.feature-item.active .feature-checkmark {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================================
   10. USUARIOS (users/users.css — standalone page)
   ========================================================================= */

.users-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-tab.active {
    background: #20224A;
    color: #ffffff;
    border-color: #20224A;
}

.filter-tab .material-symbols-rounded {
    font-size: 16px;
}

.btn-create-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-create-user:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-create-user .material-symbols-rounded {
    font-size: 18px;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-container .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
    margin-right: 0;
}

.search-container .search-input {
    width: 100%;
    padding: 10px 12px 10px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.search-container .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.page-length-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

#usersTable {
    width: 100%;
    margin-bottom: 0;
    background: #ffffff;
}

#usersTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#usersTable tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    background: #ffffff;
}

#usersTable tbody tr:hover {
    background: #f9fafb;
}

/* User Info in users table */
.users-content .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.users-content .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.users-content .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.user-phone {
    font-size: 12px;
    color: #6b7280;
}

.email-info {
    display: flex;
    flex-direction: column;
}

.email {
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
}

.phone {
    font-size: 12px;
    color: #6b7280;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-administrador {
    background: #dbeafe;
    color: #1e40af;
}

.role-cliente {
    background: #f3e8ff;
    color: #7c3aed;
}

.date-icon {
    font-size: 16px;
    color: #6b7280;
    margin-right: 8px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #f0f9ff;
    color: #0369a1;
}

.btn-edit:hover {
    background: #e0f2fe;
    transform: scale(1.05);
}

.users-content .btn-delete {
    background: #fef2f2;
    color: #dc2626;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
}

.users-content .btn-delete:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

.btn-action .material-symbols-rounded {
    font-size: 16px;
}

/* Users table footer */
.users-content .table-footer {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* Side Modal (users page variant) */
.side-modal.show {
    visibility: visible;
    opacity: 1;
}

.side-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.side-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 480px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-modal.show .side-modal-content {
    transform: translateX(0);
}

.side-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.btn-close-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-close-modal .material-symbols-rounded {
    font-size: 20px;
}

.side-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.form-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

/* Users form controls */
.users-content .form-control,
.side-modal-body .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.users-content .form-control:focus,
.side-modal-body .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.users-content .form-control::placeholder,
.side-modal-body .form-control::placeholder {
    color: #9ca3af;
}

.password-input {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #374151;
}

.btn-toggle-password .material-symbols-rounded {
    font-size: 20px;
}

.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.required {
    color: #dc2626;
}


/* =========================================================================
   10b. USUARIOS DASHBOARD (dashboard/users.css — extends layout)
   ========================================================================= */

.users-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.user-filters {
    display: flex;
    gap: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.filter-pill {
    background: #e5e7eb;
    border: 1px solid var(--color-border-opacity);
    color: var(--color-text-dark);
    padding: 12px 16px;
    border-radius: 40px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-pill:hover:not(.active) {
    background: #f1f1f1;
}

.filter-pill.active {
    background: var(--color-bg-dark);
    color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.filter-pill .material-symbols-rounded {
    font-size: 16px;
    margin-right: -2px;
}

.filter-pill.active .material-symbols-rounded {
    color: #e5e7eb;
    font-size: 18px;
}

.create-user-btn {
    font-family: 'Cera-pro', sans-serif;
    background: var(--color-success);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(139, 201, 126, 0.3);
}

.create-user-btn:hover {
    background: #a4d89a;
}

.create-user-btn .material-symbols-rounded {
    font-size: 20px;
}

.users-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 30px;
}

.user-table-wrapper {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.user-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 2px solid var(--color-border);
    min-width: 150px;
}

.user-table th.actions-column {
    text-align: center;
}

.user-table th.sortable {
    cursor: pointer;
    position: relative;
}

.user-table th .sort-icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 15px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    color: #6b7280;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.user-table td {
    padding: 15px 15px;
    border-top: 1px solid var(--color-border);
    vertical-align: middle;
}

.user-table td:first-child {
    padding-left: 15px;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.user-name-cell .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.contact-cell {
    min-width: 200px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.8;
}

.contact-cell .email {
    font-weight: 400;
    color: var(--color-text-dark);
    font-size: 14px;
}

.contact-cell .phone {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.contact-cell .contact-icon {
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.role-tag {
    font-family: 'Cera-pro', sans-serif;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 12px;
    text-align: center;
    min-width: 90px;
}

.admin-role {
    background-color: #e5e7eb;
    color: var(--color-black);
}

.client-role {
    background-color: #e5e7eb;
    color: var(--color-black);
}

.date-cell {
    font-family: 'Cera-pro', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    min-width: 150px;
}

.date-cell .material-symbols-rounded {
    font-size: 16px;
    color: #6b7280;
    vertical-align: middle;
    margin-right: 4px;
}

.actions-cell {
    min-width: 120px;
    vertical-align: middle;
}

.actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.delete-btn .material-symbols-rounded {
    color: #dc3545;
}

/* Profile Image section (modal) */
.profile-image-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.profile-avatar-upload {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    border: 3px solid var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.overlay-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-icon .material-symbols-rounded {
    font-size: 16px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.btn-upload,
.modal-form .btn-delete-img {
    padding: 8px 20px;
    font-weight: 500;
    gap: 8px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    letter-spacing: 1.1px;
}

.btn-upload {
    background: var(--color-bg-dark);
    color: var(--color-white);
    border: 1px solid var(--color-bg-dark);
}

.btn-upload:hover {
    background: #3a3f72;
}

.modal-form .btn-delete-img {
    background: #e5e7eb;
    color: var(--color-text-dark);
    border: 1px solid #e5e7eb;
}

.modal-form .btn-delete-img:hover {
    background: #d1d5db;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #374151;
}


/* =========================================================================
   11. PERFIL (users/profile.css)
   ========================================================================= */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.profile-form-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 30px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.profile-form-card input[type="text"],
.profile-form-card input[type="email"],
.profile-form-card input[type="tel"],
.profile-form-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-bg-light);
    background: var(--color-bg-light);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.profile-form-card input[type="password"] {
    letter-spacing: 2px;
}

.profile-form-card input:focus {
    border: 2px solid var(--color-bg-dark);
    background: var(--color-white);
    box-shadow: none;
}

.input-with-icon .password-toggle {
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Profile-specific buttons */
.profile-form-card .btn-cancel {
    background: var(--color-warning);
    border: 1px solid var(--color-warning);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-form-card .btn-cancel:hover {
    background: #e6bc06;
    color: var(--color-white);
}

.profile-form-card .btn-save {
    background: var(--color-success);
    border: 1px solid var(--color-success);
    color: var(--color-white);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-form-card .btn-save:hover {
    background: #7bb56f;
}

/* Profile Display Card */
.profile-display-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    height: fit-content;
    overflow: visible;
}

.profile-display-header {
    height: 77px;
    background-color: var(--color-bg-dark);
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.avatar-section {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: 30px;
    margin-right: auto;
    z-index: 2;
}

.profile-display-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-camera-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(31, 41, 55, 0.75);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    cursor: pointer;
    transition: background 0.2s;
}

.avatar-camera-icon:hover {
    background: rgba(31, 41, 55, 1);
}

.avatar-camera-icon .material-symbols-rounded {
    font-size: 16px;
}

.profile-display-body {
    padding: 20px 30px 30px 30px;
    display: flex;
    flex-direction: column;
}

.profile-display-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-dark);
}

.profile-display-role {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    opacity: 1;
    margin: 20px 0;
}

.profile-contact-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    align-self: flex-start;
}

.profile-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    align-self: flex-start;
    margin-bottom: 2px;
}

.profile-contact-info .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-text-light);
}

.profile-display-card .profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.btn-subir {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}


/* =========================================================================
   12. PRODUCTOS (dashboard/products.css)
   ========================================================================= */

.products-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.create-product-btn {
    background: var(--color-success);
    color: var(--color-white);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(139, 201, 126, 0.3);
}

.create-product-btn:hover {
    background: #a4d89a;
}

.create-product-btn .material-symbols-rounded {
    font-size: 20px;
}

.products-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 30px;
}

.product-table-wrapper {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--color-text-dark);
}

.product-table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 500;
    color: #6b7280;
    font-size: 12px;
    border-bottom: 2px solid var(--color-border);
    min-width: 150px;
}

.product-table th.actions-column {
    text-align: center;
    min-width: 120px;
}

.product-table th.sortable {
    cursor: pointer;
    position: relative;
}

.product-table th .sort-icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    font-size: 16px;
    color: #6b7280;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 4px;
    vertical-align: middle;
}

.product-table td {
    padding: 15px 15px;
    border-top: 1px solid var(--color-border);
    vertical-align: middle;
    font-weight: 500;
}

.product-name-cell {
    font-weight: 500;
    min-width: 200px;
}

.description-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #6b7280;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 70px;
}

.active-status {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
}


/* =========================================================================
   13. VENTAS Y ÓRDENES (dashboard/sales.css)
   ========================================================================= */

.sales-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 30px;
}

.sales-table-wrapper {
    overflow-x: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--color-text-dark);
}

.sales-table th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid var(--color-border);
    min-width: 150px;
}

.sales-table th.actions-column {
    text-align: center;
    min-width: 150px;
}

.sales-table th.sortable {
    cursor: pointer;
    position: relative;
}

.sales-table th .sort-icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    font-size: 16px;
    color: var(--color-text-light);
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 4px;
    vertical-align: middle;
}

.sales-table td {
    padding: 15px 15px;
    border-top: 1px solid var(--color-border);
    vertical-align: middle;
    font-weight: 500;
}

.sales-table .contact-cell {
    min-width: 250px;
}

.sales-table .user-name-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sales-table .user-name-content .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}

.order-cell,
.sales-table .actions-cell {
    text-align: center;
}

.table-action-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-gray-text);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table-action-btn:hover {
    background: #e5e7eb;
}

.table-action-btn .material-symbols-rounded {
    font-size: 18px;
}

/* Modal table (sales orders) */
.modal-table .status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 70px;
}

.modal-table .active-status {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
}

.modal-table .inactive-status {
    background-color: var(--color-inactive-bg);
    color: var(--color-inactive-text);
}

.pending-status {
    background-color: var(--color-warning);
    color: #333;
}

.modal-table .action-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

.modal-table .action-btn:hover {
    background: #e5e7eb;
}

.modal-table .action-btn .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-bg-dark);
}

/* Sales side-modal z-index override */
.sales-card ~ .side-modal {
    z-index: 5000;
}

.sales-card ~ .side-modal .modal-form-container {
    z-index: 6000;
}

/* Order items grid (sales edit modal) */
.modal-form #order-items-container {
    display: grid;
    gap: 12px;
}

.modal-form .order-item-row {
    display: grid;
    grid-template-columns: 2fr 0.7fr 0.9fr 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.modal-form .order-item-name {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
}

.modal-form select.order-item-name {
    cursor: pointer;
}

.modal-form .order-item-qty {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
}

.modal-form .order-item-price,
.modal-form .order-item-line-total {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
}

.modal-form .order-item-name:focus,
.modal-form .order-item-qty:focus,
.modal-form .order-item-price:focus {
    border-color: var(--color-dark-blue);
    outline: none;
    background: var(--color-white);
}

.modal-form .order-item-renew {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-dark);
}

.modal-form .order-item-remove {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-button-gray-text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-form .order-item-remove:hover {
    background: #e5e7eb;
}

.modal-form .btn-add {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 6px rgba(48, 195, 234, 0.3);
    transition: background 0.2s;
    font-family: 'Cera-pro', sans-serif;
}

.modal-form .btn-add:hover {
    background: #2B92D0;
}

.domain-edit-wrapper {
    margin-top: 16px;
}

.domain-edit-wrapper label {
    display: block;
    font-size: 14px;
    color: var(--color-text-dark);
    font-family: 'Cera-pro', sans-serif;
    margin-bottom: 6px;
}

.domain-edit-wrapper .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.domain-edit-wrapper .form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-white);
}

.order-totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.order-totals-grid input[readonly] {
    background: #f3f4f6;
}

.order-paid-row {
    margin-top: 14px;
    display: grid;
    gap: 6px;
    max-width: 220px;
}

.order-paid-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-dark);
    font-family: 'Cera-pro', sans-serif;
}

.order-paid-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
    cursor: pointer;
}

.order-paid-select:focus {
    border-color: var(--color-dark-blue);
    outline: none;
    background: var(--color-white);
}

.orders-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.orders-pagination #orders-page-dots {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orders-pagination .page-dot {
    font-size: 20px;
    color: var(--color-text-light);
    margin: 0 4px;
    cursor: pointer;
}

.orders-pagination .page-dot.active {
    color: var(--color-bg-dark);
}

.swal2-container {
    z-index: 10000 !important;
}


/* =========================================================================
   14. CREAR ORDEN (dashboard/create-order.css)
   ========================================================================= */

.user-info-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 30px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: var(--color-text-dark);
    font-weight: 500;
}

.user-name-value {
    font-weight: 700;
    color: var(--color-bg-dark);
}

.order-products-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 30px;
}

.products-header {
    display: grid;
    grid-template-columns: 2fr 1fr 0.5fr 50px;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.product-list-container {
    margin-bottom: 20px;
}

.product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.5fr 50px;
    gap: 15px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.product-row:last-of-type {
    border-bottom: none;
}

.product-field,
.price-field,
.quantity-field {
    display: flex;
    align-items: center;
}

.product-input,
.price-input,
.quantity-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
}

.product-input:focus,
.quantity-input:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-white);
}

.price-input {
    text-align: right;
    background: var(--color-bg-light);
    cursor: not-allowed;
}

.quantity-input {
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-field {
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-product-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-product-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.remove-product-btn .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-text-light);
}

.add-product-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-gray-text);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.add-product-btn:hover {
    background: #e5e7eb;
}

.add-product-btn .material-symbols-rounded {
    font-size: 20px;
}

.domain-field-wrapper {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-top: 20px;
}

.order-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px 30px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-top: 20px;
}

.date-field {
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
    margin-bottom: 6px;
}

.date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-dark);
    background: var(--color-bg-light);
    transition: border-color 0.2s;
}

.date-input:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-white);
}

.order-summary-list {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label-sm {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
}

.summary-value-sm {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-bg-dark);
}

.summary-iva-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-select {
    padding: 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Cera-pro', sans-serif;
    font-size: 14px;
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary .summary-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-bg-dark);
}

.order-summary .summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-bg-dark);
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.cancel-btn {
    background: var(--color-button-gray-bg);
    border: 1px solid var(--color-border);
    color: var(--color-button-gray-text);
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.create-order-final-btn {
    background: var(--color-success);
    border: 1px solid var(--color-success);
    color: var(--color-white);
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.create-order-final-btn:hover {
    background: #7bb56f;
    border-color: #7bb56f;
}


/* =========================================================================
   15. ANALYTICS (dashboard/analytics.css)
   ========================================================================= */

.analytics-container {
    padding-bottom: 40px;
}

.analytics-container .page-title {
    font-size: 22px;
}

/* Year selector */
.year-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-label {
    font-size: 14px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.year-select {
    padding: 8px 36px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: var(--color-white);
    font-size: 14px;
    color: var(--color-text-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .2s;
}

.year-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(48, 195, 234, .2);
}

/* Summary cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow .2s;
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon .material-symbols-rounded {
    font-size: 24px;
    color: var(--color-white);
}

.summary-icon--revenue { background: linear-gradient(135deg, #30C3EA, #2B92D0); }
.summary-icon--orders  { background: linear-gradient(135deg, #8BC97E, #5fb350); }
.summary-icon--avg     { background: linear-gradient(135deg, #FFD007, #f5a623); }
.summary-icon--iva     { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.summary-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.summary-body .summary-label {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.summary-body .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.chart-card-header {
    margin-bottom: 16px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 4px;
}

.chart-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}

/* Donut legend */
.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.legend-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dark);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-count {
    font-weight: 600;
    color: var(--color-text-dark);
}

/* Orders table card */
.orders-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 30px;
}

.orders-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    gap: 15px;
    flex-wrap: wrap;
}

.orders-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Status tabs */
.status-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-bg);
    border-radius: 8px;
    padding: 3px;
}

.tab-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--color-white);
    color: var(--color-text-dark);
    box-shadow: var(--shadow);
}

.tab-btn.active {
    color: var(--color-dark-blue);
    font-weight: 600;
}

/* Orders search */
.orders-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.orders-search-wrapper .search-icon {
    position: absolute;
    left: 10px;
    font-size: 18px;
    color: var(--color-text-light);
    pointer-events: none;
    margin-right: 0;
}

.orders-search {
    padding: 8px 12px 8px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    width: 200px;
    color: var(--color-text-dark);
    background: var(--color-bg);
    transition: all .2s;
}

.orders-search:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(48, 195, 234, .2);
}

/* Orders table */
.table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table thead th {
    text-align: left;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid #e5e7eb;
    min-width: 100px;
    white-space: nowrap;
}

.orders-table tbody tr {
    transition: background .15s;
}

.orders-table tbody tr:hover {
    background: #f8fbff;
}

.orders-table tbody tr.hidden-row {
    display: none;
}

.orders-table td {
    padding: 15px 15px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
    font-weight: 500;
    color: var(--color-text-dark);
}

.order-id {
    font-family: monospace;
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
}

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

.client-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark-blue));
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-cell .client-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-dark);
    white-space: nowrap;
}

.client-email {
    display: block;
    font-size: 11px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.products-cell {
    max-width: 220px;
}

.products-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: var(--color-text-dark);
}

.amount-cell {
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-text-dark);
}

.analytics-container .date-cell {
    white-space: nowrap;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Status pill variants */
.status-pill--completed { background: #ecfdf5; color: #059669; }
.status-pill--pending   { background: #fffbeb; color: #d97706; }
.status-pill--canceled  { background: #fef2f2; color: #dc2626; }

/* Empty state */
.empty-state {
    text-align: center;
    color: var(--color-text-light);
    padding: 40px 16px !important;
    font-size: 14px;
}

.orders-count {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Chart loading */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-light);
    font-size: 14px;
    gap: 8px;
}


/* =========================================================================
   16. PAGO (payment/payment.css — cleaned, deduped)
   ========================================================================= */

/* Payment layout overrides */
.payment-container .sidebar {
    display: none !important;
}

.payment-container .navbar-right {
    display: none !important;
}

.payment-container .hamburger-menu,
.payment-container .navbar-divider {
    display: none !important;
}

.payment-container .navbar {
    left: 0 !important;
}

.payment-container .main-content {
    margin-left: 0;
    margin-top: 70px;
    min-height: auto;
    padding: 0;
}

/* Payment container */
.payment-container {
    padding-top: 24px;
    min-height: auto;
    background: #f8f9fa;
    max-width: 1450px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-container .page-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 12px !important;
    margin-top: 0px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
    height: auto !important;
}

.payment-content {
    display: grid;
    grid-template-columns: minmax(600px, 1fr) minmax(360px, 420px);
    column-gap: 32px;
    justify-content: center;
    align-items: start;
    height: auto;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

.card-errors {
    color: #dc3545;
    margin-top: 8px;
}

/* Payment form */
.payment-form-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.personal-info-card,
.payment-details-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: -8px;
}

.payment-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: -2px;
    margin-top: 16px;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
}

/* Payment form controls (scoped) */
.payment-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-form .form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    margin-bottom: 4px;
}

.payment-form .form-group input,
.payment-form .form-group select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a1a;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Cera-pro', sans-serif;
}

.payment-form .form-group select,
.payment-form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 0 !important;
}

.payment-form .form-group input:focus,
.payment-form .form-group select:focus {
    outline: none;
    border-color: #20224A;
    box-shadow: 0 0 0 3px rgba(32, 34, 74, 0.1);
}

.payment-form .form-group input::-moz-placeholder {
    color: #9ca3af;
}

.payment-form .form-group input::placeholder {
    color: #9ca3af;
}

/* Payment passwords */
.password-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-left: 0;
    margin-bottom: 18px;
}

.payment-form .password-group {
    flex: 1;
    max-width: 55%;
    display: flex;
    flex-direction: column;
}

.payment-form .password-input input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    letter-spacing: 2px;
    box-sizing: border-box;
}

.payment-form .password-input input.is-invalid {
    background-image: none;
    padding-right: 50px;
}

.payment-form .password-input input::-moz-placeholder {
    letter-spacing: 2px;
    color: #9ca3af;
}

.payment-form .password-input input::placeholder {
    letter-spacing: 2px;
    color: #9ca3af;
}

.payment-form .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-form .password-toggle:hover {
    color: #374151;
}

.payment-form .password-input .validation-message {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
}

/* Payment select wrapper */
.payment-form .select-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 0 !important;
    padding-right: 40px;
}

.payment-form .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

/* Payment custom select */
.payment-form .custom-select .select-display {
    border: 2px solid #e5e7eb;
    font-size: 16px;
    color: #1a1a1a;
    font-family: 'Cera-pro', sans-serif;
}

.payment-form .custom-select .select-display:hover,
.payment-form .custom-select:focus-within .select-display,
.payment-form .custom-select.open .select-display {
    border-color: #20224A;
    box-shadow: 0 0 0 3px rgba(32, 34, 74, 0.1);
}

.payment-form .custom-select .select-placeholder {
    color: #1a1a1a;
}

.payment-form .custom-select .select-dropdown {
    border: 2px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block;
}

.payment-form .custom-select .select-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.payment-form .custom-select .select-option {
    font-size: 16px;
    color: #1a1a1a;
    border-bottom: 1px solid #f3f4f6;
}

.payment-form .custom-select .select-option:hover {
    background-color: #f9fafb;
}

.payment-form .custom-select .select-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.payment-form .custom-select .select-option.selected::after {
    content: none;
}

/* Payment selected services */
.payment-form .selected-services-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
}

.payment-form .selected-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.payment-form .service-text {
    flex: 1;
    font-weight: 500;
    min-width: 0;
}

.payment-form .remove-service {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-form .remove-service:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.quantity-control {
    flex-shrink: 0;
}

.payment-form .quantity-input {
    width: 64px;
    min-width: 64px;
}

/* Service summary */
.service-summary {
    flex: 1;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 32px;
    height: -moz-fit-content;
    height: fit-content;
    position: sticky;
    top: 110px;
}

.service-summary-header {
    background: #e5e7eb;
    margin: -32px -32px 24px -32px;
    padding: 20px 32px;
    border-radius: 12px 12px 0 0;
}

.service-summary h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.summary-item.align-top {
    align-items: flex-start;
}

.summary-item .summary-label {
    color: #6b7280;
    font-weight: 500;
}

.summary-item .summary-value {
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
}

.summary-value-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-package-details {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #6b7280;
    margin-top: 20px;
}

.details-icon {
    font-size: 12px;
    font-family: serif;
    font-style: italic;
    font-weight: bold;
    border: 1.5px solid #6b7280;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.details-text {
    font-size: 12px;
    line-height: 1.4;
}

.summary-divider {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 24px -55px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 24px;
    margin-bottom: 24px;
}

.summary-total-label {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Client info */
.client-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.client-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0;
}

.client-info .client-name {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Subscriptions */
.subscriptions-section {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.subscription-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0;
    flex-shrink: 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
    text-align: right;
}

.service-name.date-gray {
    color: #6b7280;
}

/* Service items (legacy) */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.service-price {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Dates & renewal */
.service-dates {
    margin: 16px 0;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
}

.date-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.renewal-info {
    margin: 16px 0;
}

.renewal-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.renewal-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.renewal-price {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.renewal-date {
    font-size: 14px;
    color: #6b7280;
}

.purchase-date,
.renewal-date-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-container .date-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.date-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Total */
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin: 24px 0;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.total-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

/* Terms */
.terms-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 8px;
}

.terms-text strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* Divider */
.service-divider {
    width: calc(100% + 64px);
    height: 1px;
    background: #e5e7eb;
    margin: 16px -32px;
}

/* Confirm button */
.confirm-button {
    width: 100%;
    padding: 16px 24px;
    background: #20224A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Cera-pro', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-button:hover {
    background: #1a1d3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 34, 74, 0.3);
}

.confirm-button:active {
    transform: translateY(0);
}

/* Card inputs */
.card-inputs-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    padding: 0;
    gap: 0;
    transition: border-color 0.3s ease;
}

.card-inputs-container:focus-within {
    border-color: #20224A;
    box-shadow: 0 0 0 3px rgba(32, 34, 74, 0.1);
}

.card-input {
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1a1a1a;
    font-family: 'Cera-pro', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.card-input:focus {
    background: transparent;
    box-shadow: none;
}

.card-input.card-number {
    flex: 1;
    border: none !important;
    border-right: 1px solid #e5e7eb;
    outline: none !important;
    box-shadow: none !important;
}

.card-input.card-expiry,
.card-input.card-cvc {
    flex: 0 0 60px;
    border: none !important;
    border-radius: 0;
    text-align: center;
    padding: 12px 8px;
    min-width: 60px;
    max-width: 60px;
    outline: none !important;
    box-shadow: none !important;
}

.card-input.card-expiry {
    border-right: 1px solid #e5e7eb;
}

.card-input::-moz-placeholder {
    color: #9ca3af;
}

.card-input::placeholder {
    color: #9ca3af;
}

/* Payment details section */
.payment-details {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.payment-details h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}


/* =========================================================================
   17. ANIMACIONES
   ========================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
