/* estilo.css - VERSIÓN CORREGIDA Y COMPLETA */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    font-size: 20px;
    font-weight: 500;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user span {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.user-role {
    background: #007bff !important;
    font-size: 12px;
    padding: 3px 8px !important;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
}

.btn-logout:hover {
    background: #c82333;
    color: white;
}

/* MENÚ HAMBURGUESA - ESTILOS CORREGIDOS */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    background: rgba(0,0,0,0.2);
    padding: 0 20px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background 0.3s;
    font-size: 14px;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-menu a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Submenús (si los hay) */
.nav-menu li:hover > .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c3e50;
    min-width: 200px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

.login-container input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.login-container button:hover {
    background: #0056b3;
}

.error {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
}

.success {
    color: #155724;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    border-radius: 4px;
}

/* Formularios */
.contrato-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contrato-form h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.contrato-form h3:first-child {
    margin-top: 0;
}

.contrato-form input,
.contrato-form textarea,
.contrato-form select {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contrato-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-primary {
    background: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Botones de acción */
.btn-view, .btn-approve, .btn-edit, .btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 3px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-view:hover, .btn-approve:hover, .btn-edit:hover, .btn-delete:hover {
    opacity: 0.9;
}

/* Mensajes de alerta */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Para pantallas grandes (desktop) */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .dashboard-secretaria,
    .editar-contrato-container,
    .nuevo-contrato-container,
    .ver-contrato-container,
    .mis-contratos-container {
        width: 95% !important;
        margin: 10px auto;
    }
}

/* Para tablets en landscape */
@media (max-width: 1200px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-brand h1 {
        font-size: 18px;
        text-align: center;
    }
    
    .form-wizard {
        width: 100% !important;
    }
    
    .dashboard-grid-secretaria {
        grid-template-columns: 1fr !important;
    }
    
    .stats-cards-secretaria {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Para tablets en portrait */
@media (max-width: 992px) {
    .nav-user {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li {
        flex: 1 0 auto;
        min-width: 150px;
        text-align: center;
    }
    
    .nav-menu a {
        padding: 12px 15px;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .info-grid,
    .registro-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .contratos-list .contrato-details {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Para móviles grandes */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    /* Header responsive - MENÚ HAMBURGUESA ACTIVADO */
    .nav-container {
        padding: 10px 15px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-brand {
        flex-direction: row;
        gap: 10px;
    }
    
    .nav-brand h1 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .nav-user {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
    }
    
    /* Botón hamburguesa visible */
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 15px;
    }
    
    /* Menú hamburguesa oculto por defecto */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        padding: 15px 20px;
        text-align: left;
        border-bottom: none;
    }
    
    .submenu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        display: none;
    }
    
    .nav-menu li:hover .submenu {
        display: block;
    }
    
    .submenu a {
        padding-left: 40px;
    }
    
    /* Ajustar botón logout en móviles */
    .btn-logout {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 34px;
    }
    
    .nav-user span {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Dashboard */
    .stats-cards-secretaria {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .stat-card-secretaria {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .stat-icon-secretaria {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    /* Formularios */
    .form-row,
    .filtros-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-container,
    .contrato-details,
    .filtros-container,
    .contratos-section {
        padding: 20px !important;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .wizard-step {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .step-number {
        flex-shrink: 0;
    }
    
    /* Tablas */
    .table-container {
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px !important;
        font-size: 13px;
    }
    
    /* Botones y acciones */
    .wizard-actions,
    .form-actions,
    .filtros-actions,
    .header-actions,
    .page-header,
    .section-header-secretaria,
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn,
    .btn-prev,
    .btn-next,
    .btn-submit,
    .btn-filtrar,
    .btn-limpiar,
    .btn-action-header,
    .btn-quick-action,
    .btn-view-all {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 44px; /* Tamaño mínimo para touch */
    }
    
    .quick-actions-header,
    .export-options {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
        min-height: 36px;
    }
    
    /* Contenido específico */
    .contrato-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .contratos-list .contrato-details {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .quick-tools {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    .chart-container-secretaria {
        height: 250px !important;
    }
    
    .notification-item,
    .contrato-item {
        padding: 15px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section {
        padding: 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Para móviles pequeños */
@media (max-width: 576px) {
    .nav-brand h1 {
        font-size: 14px;
    }
    
    .stats-cards-secretaria {
        grid-template-columns: 1fr !important;
    }
    
    .stat-number-secretaria {
        font-size: 24px;
    }
    
    .welcome-header h1 {
        font-size: 20px;
    }
    
    .welcome-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-badge {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-wizard {
        padding: 15px !important;
    }
    
    .form-section {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .quick-tools {
        grid-template-columns: 1fr !important;
    }
    
    .contrato-details {
        padding: 15px !important;
    }
    
    .info-item {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .registro-item {
        padding: 8px;
    }
    
    .login-container {
        margin: 30px auto;
        padding: 20px;
        width: 95%;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    /* Ajustes específicos para el header en móviles pequeños */
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-user {
        order: 2;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .menu-toggle {
        order: 1;
        margin-left: auto;
    }
    
    .nav-brand {
        order: 0;
    }
    
    .btn-logout {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 400px) {
    body {
        font-size: 13px;
    }
    
    .nav-user {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .nav-user span {
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
    
    .btn-logout {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .menu-toggle {
        position: static;
    }
    
    .chart-container-secretaria {
        height: 200px !important;
    }
    
    .tool-icon {
        font-size: 24px;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Mejoras de accesibilidad para móviles */
@media (max-width: 768px) {
    /* Aumentar tamaño de elementos táctiles */
    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Previene zoom automático en iOS */
        padding: 12px 15px !important;
        min-height: 44px; /* Altura mínima para touch */
    }
    
    /* Checkboxes y radios más grandes */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    /* Mejor espaciado en formularios */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Ajustar scroll suave */
    html {
        scroll-behavior: smooth;
    }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .chart-container-secretaria {
        height: 180px !important;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Impresión */
@media print {
    .no-print,
    .menu-toggle,
    .nav-user,
    .nav-menu,
    .header-actions,
    .btn,
    .footer-links,
    .qr-section {
        display: none !important;
    }
    
    body {
        font-size: 12px;
        background: white;
    }
    
    .container,
    .contrato-details {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .page-header {
        border: none;
        padding: 0;
    }
}

/* Animaciones para móviles */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utilidades responsivas */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    .show-on-mobile {
        display: block;
    }
}

/* Mejora de rendimiento en móviles */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .dashboard-secretaria {
        animation: fadeIn 0.3s ease-out;
    }
    
    /* Optimizar imágenes */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Corrección para Safari iOS */
@supports (-webkit-touch-callout: none) {
    .form-control {
        font-size: 16px !important;
    }
}

/* Utilidades para móviles */
.is-mobile .hide-on-mobile {
    display: none !important;
}

.is-mobile .show-on-mobile {
    display: block !important;
}

/* Ajustes específicos para iOS */
.is-ios input,
.is-ios select,
.is-ios textarea {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

/* Ajustes específicos para Android */
.is-android input[type="date"] {
    min-height: 44px;
}

/* Mejorar scroll en móviles */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        position: relative;
    }
}

/* Variables CSS para altura del viewport */
:root {
    --vh: 1vh;
}

.is-ios .full-height-mobile {
    height: calc(var(--vh, 1vh) * 100);
}

/* Estilos para el botón del menú hamburguesa */
.menu-toggle .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.menu-toggle .hamburger span {
    display: block;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* En la sección de @media (max-width: 768px) de estilo.css */
@media (max-width: 768px) {
    /* Botón hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Animación del botón hamburguesa */
    .menu-toggle.active .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Menú para móviles */
    .nav-menu {
        position: fixed;
        top: 70px; /* Ajusta según la altura de tu header */
        left: 0;
        right: 0;
        background: #2c3e50;
        display: none;
        flex-direction: column;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        display: block;
        color: white;
        text-decoration: none;
        font-size: 16px;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .nav-menu a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }
    
    /* Ajustar el contenedor del nav */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-brand h1 {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .nav-user {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 10px;
    }
    
    /* Animación para el menú */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Para móviles muy pequeños */
@media (max-width: 576px) {
    .nav-brand h1 {
        font-size: 14px;
    }
    
    .nav-user span {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .btn-logout {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-menu {
        top: 60px; /* Ajusta según la altura de tu header en móviles pequeños */
    }
}

/* Estilo mejorado para checkbox de confirmación */
.confirmation-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.confirmation-container:hover {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.confirmation-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    cursor: pointer;
    accent-color: #28a745;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.confirmation-checkbox input[type="checkbox"]:hover {
    border-color: #28a745;
    transform: scale(1.1);
}

.confirmation-checkbox input[type="checkbox"]:checked {
    background-color: #28a745;
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.confirmation-label {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #2c3e50;
    font-weight: 600;
    user-select: none;
    flex: 1;
}

.confirmation-label strong {
    color: #28a745;
}

.required-star {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

/* Efecto cuando está marcado */
.confirmation-container.checked {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

/* Responsive */
@media (max-width: 768px) {
    .confirmation-container {
        padding: 15px;
    }
    
    .confirmation-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
    }
    
    .confirmation-label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .confirmation-container {
        padding: 12px;
    }
    
    .confirmation-checkbox {
        gap: 10px;
    }
    
    .confirmation-checkbox input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
    
    .confirmation-label {
        font-size: 15px;
    }
}

/* Ocultar gráfico de progreso mensual en móviles */
@media (max-width: 768px) {
    .dashboard-section-secretaria .chart-container-secretaria,
    .dashboard-section-secretaria h2:has(i.fa-chart-line) {
        display: none !important;
    }
    
    /* Ocultar la sección completa del gráfico */
    .dashboard-section-secretaria:has(.chart-container-secretaria) {
        display: none !important;
    }
}

/* ===== OCULTAR SECCIÓN "CONTRATOS POR MES" EN MÓVILES ===== */

/* Para pantallas menores a 768px (móviles y tablets pequeñas) */
@media (max-width: 768px) {
    /* Ocultar la sección que contiene el gráfico */
    .dashboard-section:has(#contratosChart) {
        display: none !important;
    }
    
    /* Otra forma más específica: ocultar la sección que tiene el título "Contratos por Mes" */
    .dashboard-section:has(h2:contains("Contratos por Mes")) {
        display: none !important;
    }
    
    /* También puedes ocultar usando el icono del chart */
    .dashboard-section:has(i.fa-chart-line) {
        display: none !important;
    }
    
    /* Si la estructura es diferente, prueba con esta regla: */
    .dashboard-grid > div:first-child > .dashboard-section:first-child {
        display: none !important;
    }
}
