/* ==========================================
   ADMIN PANEL - RITZÉ PRO
   ========================================== */

:root {
    --admin-bg: #f4f6f9;
    --admin-surface: #ffffff;
    --admin-sidebar: #111827;
    --admin-sidebar-soft: #1f2937;
    --admin-text: #1f2937;
    --admin-muted: #6b7280;
    --admin-border: #e5e7eb;
    --admin-primary: #2563eb;
    --admin-primary-dark: #1d4ed8;
    --admin-danger: #ef4444;
    --admin-danger-dark: #b91c1c;
    --admin-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --admin-radius: 16px;
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 78px;
    --transition: 0.25s ease;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body.admin-body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--admin-bg);
    color: #333;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-footer {
    margin-top: 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

/* ===== Topbar menú (sidebar móvil + colapsar en escritorio) ===== */
.admin-topbar-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    box-shadow: var(--admin-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-topbar-toggle i {
    font-size: 22px;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.header-left-text {
    min-width: 0;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 1090;
}

.admin-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--admin-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: width var(--transition);
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    padding: 20px 10px;
}

body.sidebar-collapsed .sidebar .logo h2 {
    display: none;
}

body.sidebar-collapsed .sidebar-top {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-link-label {
    display: none;
}

body.sidebar-collapsed .nav-sub {
    display: none !important;
}

body.sidebar-collapsed .nav-divider {
    margin: 14px 0 8px;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    height: 1px;
    overflow: hidden;
}

body.sidebar-collapsed .sidebar-nav > a,
body.sidebar-collapsed .nav-group > a {
    justify-content: center;
    padding: 12px 8px;
}

body.sidebar-collapsed .sidebar-nav > a > i:first-child,
body.sidebar-collapsed .nav-group > a > i:first-child {
    margin: 0;
}

body.sidebar-collapsed .sidebar-logout .logout {
    justify-content: center;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.sidebar .logo {
    text-align: left;
    margin-bottom: 0;
}

.sidebar .logo h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #fff;
}

.admin-sidebar-close {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
}

.admin-sidebar-close i {
    font-size: 22px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-logout {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logout .logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.sidebar nav a,
.sidebar-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar nav a:hover,
.sidebar nav a.active,
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--admin-sidebar-soft);
    color: #fff;
}

.sidebar-logout .logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #f87171;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-logout .logout i {
    color: #f87171;
}

.sidebar-logout .logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ffffff;
}

.sidebar-logout .logout:hover i {
    color: #ffffff;
}

.sidebar nav .logout:hover,
.sidebar-nav .logout:hover,
.sidebar-logout .logout:hover {
    background: var(--admin-danger-dark);
}

/* ===== Nav sub ===== */
.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-sub {
    display: none;
    flex-direction: column;
    padding-left: 16px;
    margin: 2px 0 8px;
    border-left: 2px solid rgba(255,255,255,0.08);
}

.nav-group.open .nav-sub {
    display: flex;
}

.nav-sub a {
    font-size: 0.88rem !important;
    padding: 9px 10px !important;
    color: #94a3b8 !important;
    border-radius: 8px;
}

.nav-sub a:hover,
.nav-sub a.active {
    color: #fff !important;
    background: rgba(255,255,255,0.04) !important;
}

.nav-divider {
    margin: 20px 0 10px;
    padding: 0 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

/* ===== Main dashboard ===== */
.dashboard {
    flex: 1;
    min-width: 0;
    padding: 32px;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-topbar,
.dashboard > header {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-left-text h1,
.header-left h1,
header h1 {
    margin: 0;
    font-size: 26px;
    color: var(--admin-text);
    line-height: 1.2;
}

.header-left-text p,
.header-left p,
header p {
    margin: 6px 0 0;
    color: var(--admin-muted);
}

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

.btn-view-site,
.card .btn,
.btn-guardar,
.btn-login,
.btn-volver,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-view-site {
    background: var(--admin-primary);
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
}

.btn-view-site:hover {
    background: var(--admin-primary-dark);
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card {
    background: #fff;
    border-radius: var(--admin-radius);
    padding: 24px;
    text-align: left;
    box-shadow: var(--admin-shadow);
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.dashboard-cards > .card.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.card i,
.card .icon {
    font-size: 40px;
    color: var(--admin-primary);
    margin-bottom: 14px;
}

.card h2,
.card h3 {
    margin: 10px 0 8px;
    color: #111827;
}

.card p {
    font-size: 14px;
    color: var(--admin-muted);
    margin-bottom: 15px;
}

.card .btn {
    background: var(--admin-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
}

.card .btn:hover {
    background: var(--admin-primary-dark);
}

/* ===== Formularios ===== */
.formulario {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    background: #fff;
    padding: 28px;
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.formulario label,
.form-group label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

.formulario input,
.formulario select,
.formulario textarea,
.form-group input,
.textarea-json,
textarea {
    width: 100% !important;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.formulario textarea,
.form-grid textarea,
.form-field textarea,
textarea {
    min-height: clamp(140px, 22vh, 260px);
    resize: vertical;
}

.tabla textarea {
    min-height: 100px;
    padding: 8px 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--admin-shadow);
}

.card > .table-responsive,
.admin-card > .table-responsive {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus,
.form-group input:focus,
.textarea-json:focus,
textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.textarea-json {
    font-family: monospace;
    min-height: 160px;
    background-color: #f9fafb;
    color: #111827;
}

@media (max-width: 860px) {
    .tabla-admin thead,
    .contact-table thead {
        display: none;
    }

    .tabla-admin,
    .tabla-admin tbody,
    .tabla-admin tr,
    .tabla-admin td,
    .contact-table,
    .contact-table tbody,
    .contact-table tr,
    .contact-table td {
        display: block;
        width: 100%;
    }

    .tabla-admin tr,
    .contact-table tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 10px;
        background: #fff;
    }

    .tabla-admin td,
    .contact-table td {
        border: 0 !important;
        padding: 8px 10px !important;
        text-align: left;
    }

    .tabla-admin td::before,
    .contact-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        margin-bottom: 4px;
    }
}

.btn-guardar,
.btn-login {
    margin-top: 20px;
    padding: 12px 20px;
    border: none;
    background: var(--admin-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}

.btn-guardar:hover,
.btn-login:hover {
    background: var(--admin-primary-dark);
}

.btn-secondary {
    margin-top: 10px;
    background: #e2e8f0;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    color: #111827;
    font-weight: 600;
}

.inline-form {
    display: inline;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.action-buttons form.inline-form {
    display: inline-flex;
    margin: 0;
    vertical-align: middle;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    color: #2563eb;
    padding: 0;
    font: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn-icon:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.btn-icon.btn-delete {
    color: #dc2626;
}

.is-hidden {
    display: none !important;
}

.preview-edit-box {
    margin-top: 10px;
    padding: 5px;
    border: 1px dashed #ccc;
}

.img-preview-mini {
    max-height: 80px;
    border-radius: 4px;
}

.slider-config-title {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.slider-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.slider-config-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.slider-config-control {
    padding: 4px;
}

.slider-config-actions {
    margin-top: 15px;
    text-align: right;
}

.slider-save-btn {
    padding: 8px 20px;
}

.slider-empty-icon {
    font-size: 2rem;
    color: #ccc;
}

.admin-section-title {
    margin-top: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.mt-10 {
    margin-top: 10px;
}

.row-gap-8 {
    display: flex;
    gap: 8px;
}

.w-220 {
    width: 220px;
}

.btn-secondary:hover {
    background: #cfd8e3;
}

.btn-danger {
    background: var(--admin-danger);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    margin-left: 5px;
}

.btn-danger:hover {
    background: var(--admin-danger-dark);
}

.menu-item {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.menu-item input {
    flex: 1 1 220px;
}

/* ===== Tablas ===== */
.tabla {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.tabla th,
.tabla td {
    padding: 12px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.tabla th {
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
}

.tabla td {
    font-size: 14px;
}

/* ===== Login ===== */
.login-body {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: "Poppins", sans-serif;
}

.login-form {
    background: #fff;
    padding: 40px 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-header i {
    font-size: 48px;
    color: var(--admin-primary);
}

.login-header h2 {
    margin: 10px 0 5px;
    color: #1e3a8a;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
}

.form-group {
    text-align: left;
    margin: 15px 0;
}

.login-footer {
    margin-top: 15px;
    font-size: 12px;
    color: #9ca3af;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-login,
.btn-volver {
    min-width: 160px;
    height: 45px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.btn-volver {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
}

.btn-volver:hover {
    background-color: #e0e0e0;
}

/* ===== Alertas ===== */
.div-alert,
.div-success,
.div-error,
.div-info {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.div-alert {
    background: #fee2e2;
    color: #991b1b;
}

.div-success {
    background: #e7f7ee;
    color: #0b6b3b;
    border-left: 4px solid #0b6b3b;
}

.div-error {
    background: #fdeaea;
    color: #b3261e;
    border-left: 4px solid #b3261e;
}

.div-info {
    background: #eaf3fd;
    color: #174ea6;
    border-left: 4px solid #174ea6;
}

/* ===== Blog público incrustado / extras heredados ===== */
.blog-listado {
    padding: 60px 0;
    background: #f7f9fb;
}

.blog-listado .titulo-seccion {
    text-align: center;
    margin-bottom: 8px;
}

.blog-listado .subtitulo-seccion {
    text-align: center;
    margin-bottom: 32px;
    color: #555;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.blog-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-cat {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--admin-primary);
    font-weight: 600;
}

.blog-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0;
}

.blog-title a {
    color: #1c1f23;
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
}

.blog-extracto {
    font-size: 0.92rem;
    color: #555;
    margin: 0 0 8px;
}

.btn-blog {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    color: var(--admin-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.blog-detalle {
    padding: 50px 0 70px;
}

.blog-cat-detalle {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-titulo {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1c1f23;
}

.blog-fecha {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 18px;
}

.blog-img-detalle {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}

.blog-contenido {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.blog-contenido h2,
.blog-contenido h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    color: #1c1f23;
}

.blog-contenido ul,
.blog-contenido ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

.blog-contenido p {
    margin-bottom: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .dashboard {
        padding: 24px;
    }
}

@media (max-width: 900px) {
    .admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
        height: 100vh;
        width: min(86vw, 320px);
        transform: translateX(-110%);
        transition: transform var(--transition);
        box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .dashboard {
        width: 100%;
        padding: 24px 16px 24px;
    }

    .admin-topbar,
    .dashboard > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-right {
        width: 100%;
    }

    .btn-view-site {
        width: 100%;
        justify-content: center;
    }

    .formulario {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .tabla {
        min-width: 640px;
    }

    .blog-titulo {
        font-size: 1.5rem;
    }

    .blog-img-detalle {
        max-height: 260px;
    }
}

@media (max-width: 520px) {
    .dashboard {
        padding: 20px 12px 20px;
    }

    .formulario {
        padding: 16px;
        border-radius: 12px;
    }

    .header-left h1,
    header h1 {
        font-size: 1.35rem;
    }

    .btn-login,
    .btn-volver {
        width: 100%;
        min-width: 0;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* ==========================================
   Dashboard - extras
   ========================================== */

.admin-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-page-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    color: #0f172a;
    line-height: 1.2;
}

.admin-page-title i {
    color: var(--admin-primary);
}

.admin-page-subtitle {
    margin: 8px 0 0;
    color: var(--admin-muted);
    font-size: 0.96rem;
    max-width: 900px;
}

.dashboard-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-hero-copy {
    max-width: 720px;
}

.dashboard-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.dashboard-hero-copy h3 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    color: #fff;
    line-height: 1.2;
}

.dashboard-hero-copy p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    font-size: 0.98rem;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-hero-actions .btn-secondary {
    margin-top: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.dashboard-hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.18);
}

.dashboard-cards {
    margin-top: 4px;
}

.dashboard-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 220px;
}

.dashboard-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.dashboard-card h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.dashboard-card p {
    margin: 0 0 18px;
    line-height: 1.6;
    flex: 1;
}

.dashboard-card .btn {
    margin-top: auto;
}

@media (max-width: 900px) {
    .dashboard-hero-card {
        padding: 20px;
    }

    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-hero-actions .btn-view-site,
    .dashboard-hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .dashboard-card {
        min-height: auto;
    }

    .dashboard-card .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Tabla carreras (miniaturas) ===== */
.carreras-table .img-thumb-mini {
    width: 54px;
    height: 54px;
    max-width: 54px;
    max-height: 54px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.carreras-table td:nth-child(2) {
    width: 72px;
    min-width: 72px;
    max-width: 88px;
    text-align: center;
    vertical-align: middle;
}

.carreras-table .no-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    line-height: 1.1;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
}

@media (max-width: 520px) {
    .carreras-table .img-thumb-mini {
        width: 46px;
        height: 46px;
        max-width: 46px;
        max-height: 46px;
    }

    .carreras-table .no-img {
        width: 46px;
        height: 46px;
        font-size: 0.6rem;
    }
}

@media (max-width: 860px) {
    .action-buttons .btn-icon {
        min-width: 42px;
        min-height: 42px;
    }
}