/* ===================================
   UT ORIENTAL EMPLEA - ESTILOS GLOBALES
   =================================== */

/* Variables de color */
:root {
    --dorado: #c2914f;
    --vino: #931935;
    --verde: #0e312d;
    --gris: #474747;
    --gris-claro: #f5f5f5;
    --blanco: #ffffff;
    --texto-oscuro: #2d3748;
    --texto-gris: #718096;
    --borde: #e2e8f0;
    --primario: #0e312d;

    /* Navigation Variables */
    --sidebar-width: 280px;
    --sidebar-bg: linear-gradient(180deg, #0e312d 0%, #0a2623 100%);
    --nav-item-hover: rgba(194, 145, 79, 0.15);
    --nav-item-active-bg: rgba(194, 145, 79, 0.2);
    --header-height: 85px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--texto-oscuro);
    line-height: 1.6;
    background-color: var(--gris-claro);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Layout principal */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ==================================
   NEW UNIFIED NAVIGATION SYSTEM
   ================================== */

.app-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--gris-claro);
}

/* Sidebar Standard */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 4px 0 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--dorado), #a8793c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.brand-text span {
    display: block;
    font-size: 0.75rem;
    color: #e0caa2;
    font-weight: 400;
}

.sidebar-nav {
    flex: 1;
    padding: 0 15px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: white;
}

.nav-item:hover {
    background: var(--nav-item-hover);
    color: white;
}

.nav-item.active {
    background: var(--nav-item-active-bg);
    color: white;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--dorado);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 20px;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow in flex items */
}

/* Unified Top Navbar */
.navbar-top {
    height: var(--header-height);
    background: white;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.nav-left .page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.nav-left .page-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Redesigned User Profile */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-trigger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.profile-trigger .user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--verde), #1a4d46);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(14,49,45,0.15);
}

.profile-trigger .user-meta {
    text-align: left;
}

.profile-trigger h4 {
    font-size: 0.85rem;
    margin: 0;
    color: #1a202c;
}

.profile-trigger span {
    font-size: 0.7rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-logout-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #fed7d7;
}

.nav-logout-btn:hover {
    background: #feb2b2;
    color: #9b2c2c;
    transform: scale(1.05);
}

/* App Content Area */
.app-content {
    padding: 40px;
    flex: 1;
}

/* Header de página */
.page-header {
    background: #ffffff;
    padding: 18px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================
   RESPONSIVE OVERHAUL (Phase 25 + Phase 33 Reinforcement)
   ========================================================== */

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--verde);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: #e2e8f0;
}

/* Sidebar Backdrop Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ---- Tablet Landscape (≤1024px) ---- */
@media (max-width: 1024px) {
    .sidebar {
        left: -100%;
        width: 280px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 50px rgba(0,0,0,0.3);
    }

    .sidebar.active {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-top {
        padding: 0 20px;
    }

    .nav-left {
        display: flex;
        align-items: center;
    }

    .nav-left .page-title {
        font-size: 1.1rem;
    }

    .nav-left .page-subtitle {
        display: none;
    }

    .user-meta {
        display: none;
    }

    .app-content {
        padding: 25px 20px;
    }

    /* Grids start collapsing */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Tablet Portrait (≤900px) ---- */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .quick-access {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Table Responsiveness */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    /* Card adjustments */
    .card {
        padding: 1rem;
    }

    /* Vacancy card details */
    .vacancy-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .vacancy-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .vacancy-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Profile header stacking */
    .profile-header-card {
        flex-direction: column !important;
        text-align: center;
        padding: 25px 20px !important;
    }

    .profile-header-card > div:last-child {
        margin-left: 0 !important;
        width: 100%;
    }

    .profile-header-card .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-photo {
        margin: 0 auto !important;
    }
}

/* ---- Small Mobile (≤600px) ---- */
@media (max-width: 600px) {
    .profile-trigger {
        padding: 4px;
        border-radius: 50%;
    }
    
    .profile-trigger .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .app-content {
        padding: 15px 12px;
    }

    .navbar-top {
        padding: 0 12px;
        height: 65px;
    }

    .nav-left .page-title {
        font-size: 0.95rem;
    }

    /* Search Bar */
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar .form-control, 
    .search-bar select, 
    .search-bar .btn {
        max-width: 100% !important;
        width: 100%;
    }

    /* Inline Grid Overrides */
    .app-content > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    #vacancyDetail {
        order: -1;
    }

    .app-content div[style*="max-height: 700px"] {
        max-height: 400px !important;
    }

    /* Buttons full width */
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Stats card compact */
    .stat-card {
        padding: 18px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.3rem;
    }

    /* Quick card compact */
    .quick-card {
        padding: 1.2rem;
    }

    .quick-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* ---- Universal Modal Responsiveness ---- */
@media (max-width: 768px) {
    .modal-content,
    div[class*="modal"] > div[style*="width"] {
        width: 95% !important;
        max-width: 95% !important;
        padding: 20px 15px !important;
        margin: 10px auto;
    }

    /* Inline grid overrides inside modals */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Iframe Responsiveness (Admin) ---- */
@media (max-width: 1024px) {
    iframe#contentFrame {
        min-height: calc(100vh - 70px) !important;
    }
}

/* ---- User Menu on Mobile ---- */
@media (max-width: 480px) {
    .user-menu {
        gap: 8px;
    }

    .notifications-dropdown {
        margin-right: 5px !important;
    }

    .nav-logout-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    h1, h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }
}

.page-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #1a202c;
    font-weight: 700;
}

.page-header p {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Rediseño de User Profile Global */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--verde), #1a4d46);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(14,49,45,0.2);
}

.user-profile .user-info {
    line-height: 1.2;
}

.user-profile .user-info strong {
    color: #1a202c;
    display: block;
    font-size: 13px;
}

.user-profile .user-info span {
    font-size: 11px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-link {
    width: 1px;
    background: #e2e8f0;
    height: 24px;
    margin: 0 4px;
}

.btn-logout-header {
    color: #e53e3e;
    font-size: 18px;
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-logout-header:hover {
    transform: scale(1.1);
    color: #c53030;
}

/* Cards */
.card {
    background: var(--blanco);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gris-claro);
}

.card-title {
    font-size: 1.25rem;
    color: var(--texto-oscuro);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--dorado);
    font-size: 1.5rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Botones */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--verde) 0%, #0a2420 100%);
    color: var(--blanco);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 49, 45, 0.3);
}

.btn-secondary {
    background: var(--blanco);
    color: var(--verde);
    border: 2px solid var(--verde);
}

.btn-secondary:hover {
    background: var(--verde);
    color: var(--blanco);
}

.btn-accent {
    background: linear-gradient(135deg, var(--dorado) 0%, #b8843e 100%);
    color: var(--blanco);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 145, 79, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gris);
    color: var(--gris);
}

.btn-outline:hover {
    background: var(--gris);
    color: var(--blanco);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--texto-oscuro);
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--vino);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--borde);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(14, 49, 45, 0.1);
}

select.form-control {
    cursor: pointer;
    background-color: var(--blanco);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-gris);
}

.input-icon .form-control {
    padding-left: 3rem;
}

/* Tablas */
.table-container {
    background: var(--blanco);
    border-radius: 10px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, var(--verde) 0%, #0a2420 100%);
    color: var(--blanco);
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

tbody tr {
    border-bottom: 1px solid var(--borde);
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(194, 145, 79, 0.05);
}

tbody td {
    padding: 1rem;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-activa {
    background-color: rgba(14, 49, 45, 0.1);
    color: var(--verde);
    border: 1px solid var(--verde);
}

.badge-inactiva {
    background-color: rgba(113, 128, 150, 0.1);
    color: var(--texto-gris);
    border: 1px solid var(--texto-gris);
}

.badge-pendiente {
    background-color: rgba(194, 145, 79, 0.1);
    color: var(--dorado);
    border: 1px solid var(--dorado);
}

.badge-rechazado {
    background-color: rgba(147, 25, 53, 0.1);
    color: var(--vino);
    border: 1px solid var(--vino);
}

.badge-aceptado {
    background-color: rgba(14, 49, 45, 0.1);
    color: var(--verde);
    border: 1px solid var(--verde);
}

/* Accesos rápidos */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--borde);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--texto-oscuro);
}

.quick-card:hover {
    border-color: var(--dorado);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(194, 145, 79, 0.2);
}

.quick-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--dorado) 0%, #b8843e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--blanco);
    font-size: 2rem;
}

.quick-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--texto-oscuro);
}

.quick-card-description {
    font-size: 0.875rem;
    color: var(--texto-gris);
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--borde);
    border-radius: 8px;
    font-size: 1rem;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-gris);
}

/* Filtros */
.filters {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--texto-oscuro);
    font-weight: 600;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Tarjetas de vacante */
.vacancy-card {
    background: var(--blanco);
    border: 2px solid var(--borde);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vacancy-card:hover {
    border-color: var(--dorado);
    box-shadow: 0 4px 12px rgba(194, 145, 79, 0.15);
    transform: translateY(-3px);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.vacancy-title {
    font-size: 1.15rem;
    color: var(--texto-oscuro);
    margin-bottom: 0.5rem;
}

.vacancy-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--texto-gris);
    font-size: 0.9rem;
}

.vacancy-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--borde);
    border-bottom: 1px solid var(--borde);
}

.vacancy-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--texto-gris);
}

.vacancy-detail i {
    color: var(--dorado);
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--borde);
    background: var(--blanco);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    color: var(--negro);
    display: inline-block;
}

.pagination-btn:hover {
    border-color: var(--dorado);
    background: rgba(194, 145, 79, 0.1);
}

.pagination-btn.active {
    background: var(--verde);
    color: var(--blanco);
    border-color: var(--verde);
}

/* Actividad reciente */
.activity-list {
    list-style: none;
}

.activity-item {
    padding: 1rem;
    border-left: 3px solid var(--dorado);
    margin-bottom: 1rem;
    background: rgba(194, 145, 79, 0.05);
    border-radius: 0 6px 6px 0;
}

.activity-item p {
    margin-bottom: 0.25rem;
    color: var(--texto-oscuro);
}

.activity-item small {
    color: var(--texto-gris);
    font-size: 0.85rem;
}

/* Responsive rules consolidated in Phase 33 block above */

/* Utilidades */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.accent-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--vino) 0%, var(--dorado) 100%);
    border-radius: 2px;
}

/* =================================== 
   ESTILOS COMPARTIDOS (EMPRESA/DASHBOARD)
   =================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.sidebar-logo h2 {
    font-size: 1.2rem;
    margin-top: 10px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--dorado);
}

/* ==========================================================================
   DASHBOARD & STATS COMPONENTS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 25px 0 35px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 125, 50, 0.1);
    color: var(--verde);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.dorado .stat-icon {
    background: rgba(194, 145, 79, 0.1);
    color: var(--dorado);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #1a202c;
}

.stat-info p {
    font-size: 0.9rem;
    color: #718096;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* Quick Actions Section */
.quick-actions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quick-actions-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.action-btn {
    background: white;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.action-btn i {
    font-size: 1.75rem;
    color: var(--verde);
    transition: transform 0.3s;
}

.action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

.action-btn:hover {
    background: var(--verde);
    color: white;
    border-color: var(--verde);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 102, 91, 0.2);
}

.action-btn:hover i {
    color: white;
    transform: scale(1.1);
}