/* ==========================================================
   dashboard.css
   Dashboard DNS sin JavaScript
   Versión ordenada y limpia
   ========================================================== */

/* ==========================================================
   RESET GENERAL
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================
   VARIABLES CORPORATIVAS (Portales de Negocios)
   ========================================================== */

:root {
    --color-morado-base: #5A4EDE;
    --color-morado-oscuro: #674295;
    --color-rojo-alerta: #FE1E79;
    --color-fondo: #FFFFFF;
    --color-boton-principal: #A21089;
    --color-texto-boton-claro: #A3148B;
    --color-texto: #1F2532;
    --color-borde: #D9E2EC;
    --color-error: #DC3545;

    --ptp-morado-base: #5A4EDE;
    --ptp-morado-oscuro: #674295;
    --ptp-rojo-critico: #FE1E79;
    --ptp-blanco: #FFFFFF;
    --ptp-boton-principal: #A21089;
    --ptp-texto-boton-claro: #A3148B;

    --topbar-height: 72px;
    --sidebar-width: 280px;
    --sidebar-toggle-size: 42px;

    --color-topbar-fondo: #A21089;
    --color-topbar-fondo-hover: rgba(255, 255, 255, 0.18);
    --color-topbar-borde: rgba(162, 16, 137, 0.45);
    --color-topbar-texto: #ffffff;

    --color-texto-secundario: #64748b;
    --gradiente-marca: linear-gradient(135deg, var(--color-morado-base), var(--color-boton-principal));
    --sombra-card: 0 12px 32px rgba(31, 37, 50, 0.08);
}

/* ==========================================================
   TEMAS
   ========================================================== */

.theme-light {
    background: var(--color-fondo);
    color: var(--color-texto);
}

.theme-light .main-content {
    background: var(--color-fondo);
}

.theme-dark {
    background: #0f172a;
    color: #f8fafc;
}

.theme-dark .main-content {
    background: #0f172a;
}

.theme-dark {
    --color-texto: #f8fafc;
    --color-texto-secundario: #cbd5e1;
    --color-fondo: #111827;
    --color-borde: rgba(255, 255, 255, 0.14);
    --sombra-card: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   CABECERA GLOBAL (estilo tickets.portalesdenegocios.cl)
   ========================================================== */

.site-cabecera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: var(--topbar-height);
    background: var(--color-topbar-fondo);
    border-bottom: 1px solid var(--color-topbar-borde);
    box-shadow: 0 2px 10px rgba(162, 16, 137, 0.15);
}

.site-cabecera-inner {
    height: 100%;
    max-width: 100%;
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.site-cabecera-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-cabecera-logo {
    max-width: 220px;
    max-height: 52px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
}

.site-cabecera-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.site-cabecera-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;

    color: var(--color-topbar-texto);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;

    transition: background 0.2s ease;
}

.site-cabecera-link:hover,
.site-cabecera-link.is-active {
    background: var(--color-topbar-fondo-hover);
    color: var(--color-topbar-texto);
}

.site-cabecera-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.site-cabecera-theme-form {
    margin: 0;
}

.site-cabecera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: var(--sidebar-toggle-size);
    height: var(--sidebar-toggle-size);
    padding: 0 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;

    background: transparent;
    color: var(--color-topbar-texto);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-cabecera-btn:hover {
    background: var(--color-topbar-fondo-hover);
    border-color: #ffffff;
    color: var(--color-topbar-texto);
}

.site-cabecera-btn-app {
    background: rgba(255, 255, 255, 0.12);
}

.site-cabecera-btn-label {
    font-size: 14px;
}

/* ==========================================================
   LAYOUT PRINCIPAL
   ========================================================== */

.app-shell {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
    margin-top: var(--topbar-height);
}

/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--topbar-height));
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    z-index: 1000;

    color: #ffffff;
    background: linear-gradient(180deg, var(--ptp-morado-base), var(--ptp-morado-oscuro));
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
}

.theme-dark .sidebar {
    background: linear-gradient(180deg, #1e1b4b, #312e81);
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
}

.sidebar-header-title i {
    font-size: 1.25rem;
    opacity: 0.95;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 16px;
    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 0;
    border-left: 3px solid transparent;

    font-weight: 600;
    transition: 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left-color: #ffffff;
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.logout-button {
    background: transparent;
    border: none;
    color: #fecaca;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* ==========================================================
   CONTENIDO PRINCIPAL
   ========================================================== */

.main-content {
    flex: 1;
    min-height: calc(100vh - var(--topbar-height));
    margin-left: var(--sidebar-width);
    padding: 32px 40px 40px;
    overflow-x: hidden;
}

/* ==========================================================
   CABECERA DE PÁGINA (título del contenido)
   ========================================================== */

.page-header,
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-borde);
}

.page-header h1,
.topbar h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-texto);
}

.page-header h1 i,
.topbar h1 i {
    color: var(--color-morado-base);
}

.theme-dark .page-header h1 i,
.theme-dark .topbar h1 i {
    color: #a78bfa;
}

.page-header p,
.topbar p {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--color-texto-secundario);
}

.page-header-actions,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Usuario */

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;
    border-radius: 20px;
}

.theme-light .user-card {
    background: var(--color-fondo);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
}

.theme-dark .user-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--gradiente-marca);
}

.user-card strong {
    display: block;
    font-weight: 800;
}

.user-card span {
    font-size: 14px;
    color: #64748b;
}

.theme-dark .user-card strong {
    color: var(--color-texto);
}

.theme-dark .user-card span {
    color: var(--color-texto-secundario);
}

/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    padding: 18px 22px;
    margin-bottom: 24px;

    border-radius: 22px;
    font-weight: 700;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.theme-dark .alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.theme-dark .alert-warning {
    background: rgba(234, 179, 8, 0.12);
    color: #fde047;
    border-color: rgba(234, 179, 8, 0.3);
}

.theme-dark .alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================================
   CARDS Y GRID
   ========================================================== */

.dashboard-grid,
.dashboard-grid-single {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;

    margin-bottom: 32px;
}

.card {
    border-radius: 28px;
    overflow: hidden;
}

.theme-light .card {
    background: var(--color-fondo);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
}

.theme-dark .card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.upload-card,
.summary-card,
.section-card {
    padding: 32px;
}

/* ==========================================================
   SUBIDA DE ARCHIVO
   ========================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-dark .upload-card,
.theme-dark .summary-card {
    color: var(--color-texto);
}

.theme-dark .summary-card h2,
.theme-dark .section-header h2 {
    color: var(--color-texto);
}

.upload-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.upload-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.upload-panel-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    color: #ffffff;
    background: var(--gradiente-marca);
    box-shadow: 0 10px 24px rgba(162, 16, 137, 0.22);
}

.upload-panel-icon-blue {
    background: linear-gradient(135deg, #3b82f6, var(--color-morado-base));
    box-shadow: 0 10px 24px rgba(90, 78, 222, 0.25);
}

.upload-method-full {
    width: 100%;
}

.upload-field-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-texto);
}

.upload-field-hint,
.file-picker-help {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-texto-secundario);
}

.summary-card-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--color-borde);
}

.theme-dark .summary-card-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.summary-card-footer .outline-button {
    width: 100%;
    justify-content: center;
}

.welcome-icon-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.upload-panel-intro h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-texto);
    line-height: 1.2;
}

.upload-panel-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-texto-secundario);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-methods {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.upload-method {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--color-borde);

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-light .upload-method {
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.theme-dark .upload-method {
    background: #1a2438;
    border-color: rgba(255, 255, 255, 0.1);
}

.upload-method-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.upload-method-badge {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: var(--color-morado-base);
}

.upload-method-head h3 {
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-texto);
}

.upload-method-head h3 i {
    color: var(--color-boton-principal);
    font-size: 1.1rem;
}

.theme-dark .upload-method-head h3 i {
    color: #c084fc;
}

.upload-method-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-texto-secundario);
}

.upload-methods-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 48px;
}

.upload-methods-sep span {
    width: 40px;
    height: 40px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;
    color: var(--color-texto-secundario);
    background: var(--color-fondo);
    border: 1px solid var(--color-borde);
}

.theme-dark .upload-methods-sep span {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.12);
}

.upload-domain-input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--color-borde);
    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.theme-light .upload-domain-input {
    background: var(--color-fondo);
    color: var(--color-texto);
}

.theme-dark .upload-domain-input {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.14);
}

.upload-domain-input:focus {
    border-color: var(--color-morado-base);
    box-shadow: 0 0 0 3px rgba(90, 78, 222, 0.22);
}

.file-picker-zone {
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed rgba(90, 78, 222, 0.35);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.theme-dark .file-picker-zone {
    border-color: rgba(167, 139, 250, 0.35);
    background: rgba(255, 255, 255, 0.02);
}

.file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;

    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    background: var(--gradiente-marca);
    box-shadow: 0 8px 20px rgba(90, 78, 222, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.file-picker-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.file-picker-name {
    margin: 0;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-texto-secundario);
    word-break: break-word;
}

.file-picker-name.has-file {
    color: var(--color-morado-base);
    font-weight: 800;
}

.theme-dark .file-picker-name.has-file {
    color: #a78bfa;
}

.upload-form-footer {
    padding-top: 4px;
    border-top: 1px solid var(--color-borde);
}

.theme-dark .upload-form-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.upload-submit {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-borde);
}

.theme-dark .summary-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.summary-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    color: var(--color-boton-principal);
    background: rgba(162, 16, 137, 0.1);
}

.theme-dark .summary-card-icon {
    color: #e879f9;
    background: rgba(162, 16, 137, 0.18);
}

.summary-card-header h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
}

.summary-card-header p {
    margin: 0;
    font-size: 13px;
    color: var(--color-texto-secundario);
}

/* Botón principal */

.primary-button {
    border: none;
    cursor: pointer;

    border-radius: 18px;
    padding: 16px 26px;

    color: #ffffff;
    font-weight: 800;
    font-size: 16px;

    background: var(--color-boton-principal);
    box-shadow: 0 12px 28px rgba(162, 16, 137, 0.25);
}

.primary-button:hover {
    background: var(--color-texto-boton-claro);
}


/* ==========================================================
   RESUMEN
   ========================================================== */

.summary-card h2 {
    margin-top: 0;
    font-size: 28px;
    font-weight: 800;
}

.summary-list {
    margin-top: 34px;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.summary-item span {
    color: var(--color-texto-secundario);
}

.theme-dark .summary-item span {
    color: #e2e8f0;
}

.summary-divider {
    width: 100%;
    margin: 8px 0;

    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Badges numéricos del resumen */

.badge {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    border-radius: 12px;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
}

.badge-cyan {
    background: var(--color-morado-base);
}

.badge-green {
    background: #22c55e;
}

.badge-yellow {
    background: #eab308;
}

.badge-red {
    background: #ef4444;
}

.badge-gray {
    background: #94a3b8;
}

/* ==========================================================
   SECCIONES
   ========================================================== */

.section-card {
    margin-bottom: 32px;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0;

    font-size: 28px;
    font-weight: 800;
}

.section-header p {
    margin-top: 10px;
    color: #64748b;
}

.theme-dark .section-header p {
    color: #94a3b8;
}

/* Estado vacío */

.empty-state {
    padding: 50px;
    text-align: center;
    color: #64748b;
}

.theme-dark .empty-state {
    color: #94a3b8;
}

.empty-state i {
    display: block;
    margin-bottom: 16px;
    font-size: 50px;
    color: var(--color-morado-base);
}

.empty-state strong {
    display: block;

    margin-bottom: 8px;
    font-size: 18px;
}

.dominio-inexistente-state i {
    color: #dc2626;
}

.theme-dark .dominio-inexistente-state i {
    color: #f87171;
}

.row-dominio-inexistente td {
    vertical-align: middle;
}

.row-dominio-inexistente-msg {
    margin-left: 10px;
    color: #64748b;
    font-size: 13px;
}

.theme-dark .row-dominio-inexistente-msg {
    color: #94a3b8;
}

/* ==========================================================
   TABLAS
   ========================================================== */

.table-wrapper {
    width: 100%;
    margin-top: 24px;

    overflow-x: auto;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.theme-dark .table-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
}

.history-table {
    min-width: 1280px;
}

.data-table {
    width: 100%;
    min-width: 1150px;

    border-collapse: collapse;
    table-layout: fixed;
}

.results-table {
    min-width: 1280px;
}

.data-table thead {
    background: #e2e8f0;
}

.theme-dark .data-table thead {
    background: #1a2438;
}

.data-table th {
    padding: 18px 20px;

    text-align: left;
    font-size: 14px;
    font-weight: 800;
    color: #334155;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-dark .data-table th {
    color: #cbd5e1;
}

.data-table td {
    padding: 18px 20px;

    font-size: 14px;
    vertical-align: middle;
    color: #334155;
    overflow: hidden;
}

.theme-dark .data-table td {
    color: #dbeafe;
}

.data-table tbody tr {
    border-top: 1px solid #e2e8f0;
}

.theme-dark .data-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table tbody tr:hover {
    background: rgba(90, 78, 222, 0.08);
}

.theme-dark .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Anchos de columnas */

.w-small {
    width: 56px;
}

.w-domain {
    width: 210px;
}

.w-ip {
    width: 150px;
}

.w-status {
    width: 180px;
}

.w-mx {
    width: 280px;
}

.w-diagnostic {
    width: 260px;
}

.w-estado {
    width: 90px;
}

.w-actions {
    width: 320px;
}

.results-table .w-actions {
    width: 150px;
}

.results-table .w-actions .outline-button {
    white-space: nowrap;
}

.history-table .action-group {
    flex-direction: column;
    align-items: stretch;
}

.history-table .action-group .outline-button {
    width: 100%;
    justify-content: center;
}

/* Texto */

.break-text {
    word-break: break-word;
}

.cell-correo {
    white-space: nowrap;
    word-break: normal;
}

.font-bold {
    font-weight: 800;
}

.text-cyan {
    color: var(--color-morado-base) !important;
}

.text-green {
    color: #22c55e !important;
}

.text-yellow {
    color: #eab308 !important;
}

.text-red {
    color: #ef4444 !important;
}

.diagnostic-cell {
    max-height: 76px;
    overflow: hidden;

    line-height: 1.45;
    color: #64748b;
    word-break: break-word;
}

.theme-dark .diagnostic-cell {
    color: #94a3b8;
}

/* ==========================================================
   BADGES SUAVES
   ========================================================== */

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-green-soft {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.badge-red-soft {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.badge-gray {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.16);
    color: #ca8a04;
}

.theme-dark .badge-green-soft {
    color: #86efac;
}

.theme-dark .badge-red-soft {
    color: #fca5a5;
}

.theme-dark .badge-gray {
    color: #cbd5e1;
}

.theme-dark .badge-yellow {
    color: #fde047;
}

/* ==========================================================
   BOTONES DE ACCIÓN
   ========================================================== */

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.outline-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 14px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

.outline-button.purple {
    border: 1px solid var(--color-boton-principal);
    color: var(--color-boton-principal);
}

.outline-button.red,
.danger-button {
    border: 1px solid #ef4444;
    color: #ef4444;
}

.outline-button.cyan {
    border: 1px solid var(--color-morado-base);
    color: var(--color-morado-base);
}

.outline-button.green {
    border: 1px solid #22c55e;
    color: #22c55e;
}

.outline-button.green:hover {
    background: #22c55e;
    color: #ffffff;
}

.secondary-button {
    border: 1px solid #94a3b8;
    color: #64748b;
}

.outline-button.purple:hover {
    background: var(--color-boton-principal);
    color: #ffffff;
}

.outline-button.red:hover,
.danger-button:hover {
    background: #ef4444;
    color: #ffffff;
}

.outline-button.cyan:hover {
    background: var(--color-morado-base);
    color: #ffffff;
}

/* ==========================================================
   CONFIRMACIÓN DE ELIMINACIÓN
   ========================================================== */

.confirm-box {
    margin-top: 24px;
    padding: 24px;

    border-radius: 22px;
}

.theme-light .confirm-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.theme-dark .confirm-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================================
   MÉTRICAS DE DETALLE
   ========================================================== */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-bottom: 24px;
}

.metric-grid-five {
    grid-template-columns: repeat(5, 1fr);
}

.metric-grid-seven {
    grid-template-columns: repeat(7, 1fr);
}

.metric-card {
    padding: 20px;
    border-radius: 20px;
}

.theme-light .metric-card {
    background: #f8fafc;
}

.theme-dark .metric-card {
    background: #1a2438;
}

.metric-card span {
    display: block;

    margin-bottom: 8px;
    color: #64748b;
}

.theme-dark .metric-card span {
    color: #94a3b8;
}

.metric-card strong {
    font-size: 20px;
}

/* ==========================================================
   DETALLE DNS
   ========================================================== */

.info-box {
    padding: 22px;
    margin-bottom: 20px;

    border-radius: 22px;
}

.info-box h3 {
    margin-top: 0;
}

.cyan-box {
    background: rgba(90, 78, 222, 0.12);
    border: 1px solid rgba(90, 78, 222, 0.25);
}

.purple-box {
    background: rgba(162, 16, 137, 0.1);
    border: 1px solid rgba(162, 16, 137, 0.25);
}

.yellow-box {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.28);
}

.correos-pdn-intro {
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.5;
}

.correos-pdn-subtitle {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #334155;
}

.theme-dark .correos-pdn-subtitle {
    color: #e2e8f0;
}

.theme-dark .correos-pdn-intro {
    color: #94a3b8;
}

.correos-pdn-table {
    min-width: 720px;
}

.dns-record-block {
    margin-top: 28px;
}

.empty-record {
    padding: 18px;
    border-radius: 16px;
}

.theme-light .empty-record {
    background: #f8fafc;
    color: #64748b;
}

.theme-dark .empty-record {
    background: #1a2438;
    color: #94a3b8;
}

/* ==========================================================
   AUDITORÍA IP
   ========================================================== */

.audit-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-pill {
    display: inline-flex;
    width: max-content;

    padding: 6px 10px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.audit-green {
    background: rgba(34, 197, 94, 0.14);
    color: #16a34a;
}

.audit-red {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

.audit-gray {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.theme-dark .audit-green {
    color: #86efac;
}

.theme-dark .audit-red {
    color: #fca5a5;
}

.theme-dark .audit-gray {
    color: #cbd5e1;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1300px) {
    .metric-grid-seven {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .dashboard-grid,
    .dashboard-grid-single {
        grid-template-columns: 1fr;
    }

    :root {
        --sidebar-width: 230px;
    }

    .main-content {
        padding: 24px;
    }

    .metric-grid,
    .metric-grid-five {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .metric-grid,
    .metric-grid-five,
    .metric-grid-seven {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-cabecera-btn-label {
        display: none;
    }

    .site-cabecera-logo {
        max-width: 160px;
    }
}

@media (max-width: 800px) {
    .app-shell {
        flex-direction: column;
        margin-top: var(--topbar-height);
    }

    .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        top: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .page-header,
    .topbar {
        flex-direction: column;
    }

    .page-header h1,
    .topbar h1 {
        font-size: 1.6rem;
    }

    .page-header-actions,
    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .upload-card,
    .summary-card,
    .section-card {
        padding: 22px;
    }

    .upload-methods {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .upload-methods-sep {
        padding: 0;
    }

    .upload-methods-sep span {
        width: 36px;
        height: 36px;
    }

    .upload-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================
   FILTROS PHP SIN JAVASCRIPT
   ========================================================== */

.section-header-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.filter-card {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
}

.theme-light .filter-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.theme-dark .filter-card {
    background: #1a2438;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-field label {
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
}

.theme-dark .filter-field label {
    color: #94a3b8;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;

    border-radius: 14px;
    border: 1px solid #cbd5e1;

    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.theme-light .filter-field input,
.theme-light .filter-field select {
    background: #ffffff;
    color: #0f172a;
}

.theme-dark .filter-field input,
.theme-dark .filter-field select {
    background: #111827;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.12);
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--color-morado-base);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.small-button {
    min-height: 46px;
    padding: 0 18px;
}

@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .section-header-between {
        flex-direction: column;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================
   POPUPS SIN JAVASCRIPT
   ========================================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;

    padding: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

#popup-dns.popup-overlay {
    z-index: 3010;
}

.popup-box {
    width: 100%;
    max-height: 88vh;

    border-radius: 28px;
    overflow-y: auto;
}

.popup-large {
    max-width: 1280px;
}

.popup-small {
    max-width: 560px;
}

.theme-light .popup-box {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25);
}

.theme-dark .popup-box {
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;

    padding: 28px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.theme-dark .popup-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.popup-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.popup-header p {
    margin: 10px 0 0;
    color: #64748b;
}

.theme-dark .popup-header p {
    color: #94a3b8;
}

.popup-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.popup-export-bar {
    margin: 0 28px 8px;
    padding: 18px 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.theme-light .popup-export-bar {
    background: #ecfdf5;
    border: 1px solid #86efac;
}

.theme-dark .popup-export-bar {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.popup-export-bar p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.theme-dark .popup-export-bar p {
    color: #94a3b8;
}

.popup-export-bar .primary-button {
    min-width: 260px;
}

.export-excel-link {
    font-weight: 800;
}

.popup-close {
    min-width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    text-decoration: none;
    font-size: 18px;
}

.theme-light .popup-close {
    background: #f1f5f9;
    color: #334155;
}

.theme-dark .popup-close {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.popup-box > .metric-grid,
.popup-box > .filter-card,
.popup-box > .table-wrapper,
.popup-box > .empty-state {
    margin-left: 28px;
    margin-right: 28px;
}

.popup-box > .metric-grid {
    margin-top: 28px;
}

.popup-box > .table-wrapper,
.popup-box > .empty-state {
    margin-bottom: 28px;
}

.popup-actions {
    padding: 28px;

    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 800px) {
    .popup-overlay {
        padding: 14px;
        align-items: flex-start;
    }

    .popup-header {
        padding: 22px;
    }

    .popup-header h2 {
        font-size: 22px;
    }

    .popup-box > .metric-grid,
    .popup-box > .filter-card,
    .popup-box > .table-wrapper,
    .popup-box > .empty-state {
        margin-left: 18px;
        margin-right: 18px;
    }

    .popup-actions {
        flex-direction: column;
    }
}

/* ==========================================================
   AJUSTES INTERNOS DE POPUP DNS
   ========================================================== */

.popup-inner {
    margin-left: 28px;
    margin-right: 28px;
}

.popup-inner:last-child {
    margin-bottom: 28px;
}

.popup-box .dns-record-block h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.popup-box .info-box p {
    line-height: 1.55;
}

/* ==========================================================
   FILTRO DEL HISTORIAL
   ========================================================== */

.history-filter-grid {
    grid-template-columns: 2fr 1fr auto;
}

@media (max-width: 900px) {
    .history-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   SECCIÓN DE AYUDA
   ========================================================== */

.help-section {
    margin-bottom: 32px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.help-card,
.help-panel,
.help-note {
    border-radius: 22px;
}

.help-card {
    padding: 22px;
}

.theme-light .help-card,
.theme-light .help-panel,
.theme-light .help-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.theme-dark .help-card,
.theme-dark .help-panel,
.theme-dark .help-note {
    background: #1a2438;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    margin-bottom: 16px;
}

.help-cyan {
    background: rgba(90, 78, 222, 0.14);
    color: var(--color-morado-base);
}

.help-green {
    background: rgba(34, 197, 94, 0.14);
    color: #22c55e;
}

.help-red {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}

.help-gray {
    background: rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.theme-dark .help-gray {
    color: #cbd5e1;
}

.help-card h3,
.help-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 18px;
    font-weight: 800;
}

.help-card p,
.help-panel p,
.help-note {
    color: #64748b;
    line-height: 1.55;
}

.theme-dark .help-card p,
.theme-dark .help-panel p,
.theme-dark .help-note {
    color: #cbd5e1;
}

.help-example {
    margin: 14px 0;
    padding: 14px;

    border-radius: 16px;
}

.theme-light .help-example {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.theme-dark .help-example {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-example pre {
    margin: 10px 0 0;

    white-space: pre-wrap;
    word-break: break-word;

    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: var(--color-morado-base);
}

.help-badge-row {
    margin: 14px 0;
}

.help-wide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.help-panel {
    padding: 24px;
}

.dns-type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 18px 0;
}

.dns-type-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
}

.theme-light .dns-type-list span {
    background: #ffffff;
    color: var(--color-morado-base);
    border: 1px solid rgba(90, 78, 222, 0.35);
}

.theme-dark .dns-type-list span {
    background: #111827;
    color: #67e8f9;
    border: 1px solid rgba(103, 232, 249, 0.2);
}

.help-list,
.help-steps {
    margin: 0;
    padding-left: 20px;

    color: #64748b;
    line-height: 1.8;
}

.theme-dark .help-list,
.theme-dark .help-steps {
    color: #cbd5e1;
}

.help-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 20px;
}

.help-note i {
    color: var(--color-morado-base);
    font-size: 22px;
}

/* Responsive ayuda */

@media (max-width: 1300px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-wide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-note {
        flex-direction: column;
    }
}

/* ==========================================================
   LOADER DE ANÁLISIS DNS
   ========================================================== */

.analysis-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
}

.analysis-loader.is-active {
    display: flex;
}

body.analysis-loader-open {
    overflow: hidden;
}

.analysis-loader-box {
    width: 100%;
    max-width: 520px;

    padding: 34px;
    border-radius: 28px;

    text-align: center;
}

.theme-light .analysis-loader-box {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
}

.theme-dark .analysis-loader-box {
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.analysis-loader-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    color: var(--color-morado-base);
    background: rgba(90, 78, 222, 0.14);
}

.analysis-loader-box h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
}

.analysis-loader-box p {
    margin: 0 0 24px;

    line-height: 1.55;
    color: #64748b;
}

.theme-dark .analysis-loader-box p {
    color: #cbd5e1;
}

.progress-wrapper {
    width: 100%;
    height: 18px;

    overflow: hidden;
    border-radius: 999px;

    background: #e2e8f0;
}

.theme-dark .progress-wrapper {
    background: #1a2438;
}

.progress-bar {
    width: 0%;
    height: 100%;

    border-radius: 999px;
    background: var(--gradiente-marca);
    transition: width 0.25s ease;
}

.progress-text {
    display: block;

    margin-top: 14px;

    font-size: 20px;
    font-weight: 800;
    color: var(--color-morado-base);
}

/* ==========================================================
   LOADER DE ANÁLISIS DNS (bloque extendido)
   ========================================================== */

.analysis-loader-box {
    width: 100%;
    max-width: 560px;

    padding: 36px;
    border-radius: 30px;

    text-align: center;
}

.theme-light .analysis-loader-box {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
}

.theme-dark .analysis-loader-box {
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.analysis-loader-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 20px;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 36px;
    color: var(--color-morado-base);

    background: rgba(6, 182, 212, 0.14);
}

.analysis-loader-box h2 {
    margin: 0 0 10px;

    font-size: 30px;
    font-weight: 800;
}

.analysis-loader-box p {
    min-height: 48px;
    margin: 0 0 24px;

    line-height: 1.55;
    color: #64748b;
}

.theme-dark .analysis-loader-box p {
    color: #cbd5e1;
}

.progress-wrapper {
    width: 100%;
    height: 20px;

    overflow: hidden;
    border-radius: 999px;

    background: #e2e8f0;
}

.theme-dark .progress-wrapper {
    background: #1a2438;
}

.progress-bar {
    width: 0%;
    height: 100%;

    border-radius: 999px;
    background: var(--gradiente-marca);

    transition: width 0.35s ease;
}

.progress-footer {
    margin-top: 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.progress-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-morado-base);
}

.progress-step {
    font-size: 14px;
    font-weight: 800;
    color: #64748b;
}

.theme-dark .progress-step {
    color: #94a3b8;
}

.progress-detail {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-morado-base);
    text-align: center;
}

.theme-dark .progress-detail {
    color: var(--color-morado-base);
}

.analysis-loader-note {
    margin-top: 24px;
    padding: 14px 16px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border-radius: 16px;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
}

.theme-light .analysis-loader-note {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.theme-dark .analysis-loader-note {
    background: #1a2438;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-loader-note i {
    color: var(--color-morado-base);
    font-size: 18px;
}

@media (max-width: 700px) {
    .analysis-loader-box {
        padding: 26px;
    }

    .analysis-loader-box h2 {
        font-size: 24px;
    }

    .progress-footer {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================
   INICIO — TARJETAS DE ACCESO
   ========================================================== */

.dashboard-welcome {
    margin-bottom: 32px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.welcome-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: 22px;
    text-decoration: none;
    color: var(--color-texto);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-light .welcome-card {
    background: var(--color-fondo);
    border: 1px solid var(--color-borde);
    box-shadow: var(--sombra-card);
}

.theme-dark .welcome-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(31, 37, 50, 0.12);
}

.welcome-card h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.welcome-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-texto-secundario);
}

.welcome-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #ffffff;
    background: var(--gradiente-marca);
}

.welcome-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.welcome-icon-gray {
    background: linear-gradient(135deg, #64748b, #475569);
}

.welcome-icon-purple {
    background: linear-gradient(135deg, var(--color-morado-base), var(--color-morado-oscuro));
}

.welcome-card-primary {
    border-color: rgba(162, 16, 137, 0.35);
}

.theme-light .welcome-card-primary {
    background: linear-gradient(180deg, #fdf4ff 0%, #ffffff 100%);
}

.welcome-note {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.theme-light .welcome-note {
    background: #f8fafc;
    border: 1px solid var(--color-borde);
    color: var(--color-texto-secundario);
}

.theme-dark .welcome-note {
    background: #1a2438;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.welcome-note a {
    color: var(--color-boton-principal);
    font-weight: 700;
}

.theme-dark .welcome-note a {
    color: #c084fc;
}

.welcome-note i {
    color: var(--color-morado-base);
    font-size: 20px;
}