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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #F7FAFC;
    color: #2D3748;
    min-height: 100vh;
}

/* Modales de Autenticación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.modal-card h2 {
    color: #1A365D;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-card p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 24px;
}

.modal-card input {
    width: 100%;
    padding: 12px;
    font-size: 20px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-card input:focus {
    border-color: #3182CE;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #4A5568;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    letter-spacing: normal;
    text-align: left;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
}

.input-group input:focus {
    border-color: #48BB78;
}

.error-msg {
    color: #E53E3E;
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
    font-weight: 600;
}

/* Dashboard Principal */
.dashboard-container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1A365D;
}

.header p {
    color: #718096;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #CBD5E0;
}

.metric-card.metric-active {
    border-left-color: #48BB78;
}

.metric-card.metric-pending {
    border-left-color: #ED8936;
}

.metric-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-card p {
    font-size: 36px;
    font-weight: 700;
    color: #2D3748;
}

/* Tabla */
.table-section {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
}

.table-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2D3748;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #F7FAFC;
    color: #4A5568;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 2px solid #E2E8F0;
}

td {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 14px;
    color: #4A5568;
    vertical-align: middle;
}

tr:hover {
    background-color: #F8FAFC;
}

.table-loading {
    text-align: center;
    color: #718096;
    padding: 48px;
}

/* Botones */
button, a button {
    font-family: inherit;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3182CE;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #2B6CB0;
}

.btn-secondary {
    background-color: #E2E8F0;
    color: #4A5568;
}

.btn-secondary:hover {
    background-color: #CBD5E0;
}

.btn-danger {
    background-color: #E53E3E;
    color: #FFFFFF;
}

.btn-danger:hover {
    background-color: #C53030;
}

.btn-success {
    background-color: #48BB78;
    color: #FFFFFF;
}

.btn-success:hover {
    background-color: #38A169;
}

.btn-warning {
    background-color: #ECC94B;
    color: #FFFFFF;
}

.btn-warning:hover {
    background-color: #D69E2E;
}

.btn-cancel {
    background-color: #EDF2F7;
    color: #4A5568;
}

.btn-cancel:hover {
    background-color: #E2E8F0;
}

/* Acciones en Fila */
.action-group {
    display: flex;
    gap: 8px;
}

.action-group button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Etiquetas de Estado */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.status-active {
    background-color: #C6F6D5;
    color: #22543D;
}

.status-pill.status-pending {
    background-color: #FEEBC8;
    color: #744210;
}

/* Etiquetas de Plan */
.plan-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.plan-badge.plan-demo {
    background-color: #FEFCBF;
    color: #744210;
}

.plan-badge.plan-basica {
    background-color: #E2E8F0;
    color: #2D3748;
}

.plan-badge.plan-premium {
    background-color: #EBF8FF;
    color: #2B6CB0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
