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

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

/* Cabecera */
header {
    background-color: #003366; /* Azul oscuro */
    color: white;
    padding: 1rem 0;
}

.header-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navegación */
nav {
    background-color: #004080; /* Azul un poco más claro */
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #002244;
}

/* Contenido principal */
main {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    min-height: 60vh;
}

/* Formularios */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
}

button, .btn {
    background-color: #003366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background-color: #002244;
}

.btn-danger {
    background-color: #cc0000;
}

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

.btn-success {
    background-color: #007700;
}

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

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

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

/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mensajes */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .header-content, main, .footer-content {
        width: 95%;
    }
}

/* Estilos para la página de reservas */
.no-action {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

.actions {
    margin-top: 1.5rem;
}

/* Mejorar visualización de la tabla */
table {
    margin-top: 1rem;
}

th {
    background-color: #003366;
    color: white;
}

/* ===== NUEVOS ESTILOS PARA AVISOS Y ACTIVIDADES ===== */

/* ===== ESTILOS CORREGIDOS PARA AVISOS Y ACTIVIDADES ===== */

.activity-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Encabezado de Avisos - CORREGIDO */
.aviso-header {
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #cc0000;
    padding-bottom: 0.5rem;
}

.aviso-label {
    color: #cc0000 !important; /* ROJO con !important */
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 10px;
    text-transform: uppercase;
}

.aviso-title {
    color: #cc0000 !important; /* ROJO con !important */
    font-weight: bold;
}

/* Títulos de actividades normales (azul) - CORREGIDO */
.actividad-title {
    color: #003366 !important; /* AZUL con !important */
    font-weight: bold;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
}

/* Detalles de la actividad (colores normales) - CORREGIDO */
.activity-details {
    color: #333 !important; /* Color normal */
}

.activity-details p {
    margin: 0.5rem 0;
    color: #555 !important; /* Color más suave */
}

.activity-details strong {
    color: #333 !important; /* Color normal para las etiquetas fuertes */
}

.activity-description {
    margin-top: 0.8rem;
    line-height: 1.5;
    color: #444 !important; /* Color normal para la descripción */
}

/* Mejora visual para el contenedor principal */
.activities-section {
    margin-bottom: 2rem;
}

.activities-section h3 {
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ===== ESTILOS MEJORADOS PARA PAGOS ===== */

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.product-info {
    flex: 2;
}

.product-quantity-input {
    flex: 1;
    text-align: right;
}

.product-name {
    font-weight: bold;
}

.product-price {
    color: #666;
    font-size: 0.9em;
}

/* Mejoras para el ticket */
.ticket-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.ticket-product {
    text-align: left;
}

.ticket-price {
    text-align: right;
    font-weight: bold;
}

.cleaning-item {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.cleaning-note {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.total-section {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.total-line {
    margin: 0.5rem 0;
}

.cleaning-total {
    color: #856404;
}

.grand-total {
    font-size: 1.2em;
    border-top: 2px solid #003366;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Estilos para los botones de eliminar */
.remove-item {
    color: #dc3545;
    padding: 0.2rem;
    border-radius: 4px;
}

.remove-item:hover {
    background-color: #f8d7da;
}

/* ===== ESTILOS PARA FILTROS DE INFORMES ===== */

.filters-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.filters-section h3 {
    margin-top: 0;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #495057;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-group button {
    margin-top: 0.5rem;
}

.filter-summary {
    background-color: #e8f4f8;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #003366;
}

.filter-summary h4 {
    margin-top: 0;
    color: #003366;
}

.filter-summary ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.filter-summary li {
    margin: 0.2rem 0;
}

.stats-summary {
    background-color: #d4edda;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.stats-summary h4 {
    margin-top: 0;
    color: #155724;
}

.stats-summary p {
    margin: 0.5rem 0;
    font-size: 1.1em;
}

/* Paginación */
.pagination {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .filters-section {
        padding: 1rem;
    }
}

/* Estilos para configuración de limpieza */
.info-box {
    background-color: #e8f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #003366;
    margin-top: 2rem;
}

.info-box h3 {
    margin-top: 0;
    color: #003366;
}

.info-box ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin: 0.3rem 0;
    color: #555;
}

/* ===== ESTILOS PARA IMPRESIÓN (CONSOLIDADOS) ===== */
@media print {
    /* --- OCULTAR ELEMENTOS --- */
    .no-print,
    header,
    nav,
    footer,
    .actions,
    .btn,
    .filters-section,
    .filter-summary,
    .stats-summary,
    .pagination,
    .message,
    .no-action,
    .remove-item {
        display: none !important;
    }

    /* --- MOSTRAR ELEMENTOS SOLO IMPRESIÓN --- */
    .only-print {
        display: block !important;
    }

    /* --- RESET BÁSICO --- */
    * {
        background: transparent !important;
        color: black !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    body {
        background: white !important;
        font-size: 12pt;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* --- MEJORAR TABLAS --- */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 10pt !important;
        page-break-inside: avoid;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 4px !important;
    }

    th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
    }

    /* --- TICKETS ESPECÍFICOS --- */
    .ticket-info,
    .total-section {
        border: 1px solid #000 !important;
        padding: 10px !important;
        margin: 10px 0 !important;
        page-break-inside: avoid;
    }

    .ticket-item {
        border-bottom: 1px solid #000 !important;
    }

    .total-line {
        font-weight: bold !important;
    }

    .grand-total {
        border-top: 2px solid #000 !important;
        font-size: 12pt !important;
        padding-top: 5px !important;
        margin-top: 10px !important;
    }

    /* --- EVITAR SALTO DE PÁGINA --- */
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    /* --- OCULTAR ENLACES --- */
    a[href]:after {
        content: "" !important;
    }

    a {
        text-decoration: none !important;
    }
}

/* ===== MEJORAS MÓVILES PARA RESERVATIONS.PHP ===== */

/* En móviles: convertir tabla en tarjetas */
@media (max-width: 768px) {
    /* Ocultar tabla en móviles */
    .reservations-table {
        display: none;
    }

    /* Mostrar tarjetas en móviles */
    .reservations-cards {
        display: block;
    }

    /* Estilos para cada tarjeta de reserva */
    .reservation-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .reservation-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #003366;
    }

    .reservation-date {
        font-weight: bold;
        color: #003366;
        font-size: 1.1em;
    }

    .reservation-shift {
        background: #003366;
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.9em;
    }

    .reservation-details {
        margin-bottom: 0.8rem;
    }

    .reservation-member {
        font-weight: bold;
        margin-bottom: 0.3rem;
    }

    .reservation-attendees {
        color: #666;
        margin-bottom: 0.5rem;
    }

    .reservation-resources {
        font-size: 0.9em;
        color: #555;
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 4px;
        margin-bottom: 0.8rem;
    }

    .reservation-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .action-btn {
        padding: 0.5rem 0.8rem;
        border: none;
        border-radius: 4px;
        text-decoration: none;
        font-size: 0.9em;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .edit-btn {
        background: #003366;
        color: white;
    }

    .delete-btn {
        background: #dc3545;
        color: white;
    }

    .pay-btn {
        background: #28a745;
        color: white;
    }
}

/* En desktop: mostrar tabla normal */
@media (min-width: 769px) {
    .reservations-table {
        display: table;
    }

    .reservations-cards {
        display: none;
    }
}

/* ===== MEJORAS MÓVILES PARA TICKETS.PHP ===== */
@media (max-width: 768px) {
    .tickets-table {
        display: none;
    }

    .tickets-cards {
        display: block;
    }

    .ticket-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.8rem;
    }

    .ticket-number {
        font-weight: bold;
        color: #003366;
        font-size: 1.1em;
    }

    .ticket-date {
        color: #666;
        font-size: 0.9em;
    }

    .ticket-details {
        margin-bottom: 0.8rem;
    }

    .ticket-member {
        font-weight: bold;
        margin-bottom: 0.3rem;
    }

    .ticket-reservation {
        color: #666;
        margin-bottom: 0.5rem;
    }

    .ticket-amount {
        font-size: 1.2em;
        font-weight: bold;
        color: #28a745;
        text-align: right;
    }

    .ticket-actions {
        text-align: right;
    }
}

@media (min-width: 769px) {
    .tickets-table {
        display: table;
    }

    .tickets-cards {
        display: none;
    }
}

/* ===== MEJORAS GENERALES MÓVILES ===== */
@media (max-width: 768px) {
    /* Mejorar navegación para móviles */
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav li {
        margin: 0.2rem 0;
    }

    nav a {
        display: block;
        padding: 1rem;
        text-align: center;
        background: #004080;
        margin: 0.1rem 0;
    }

    /* Mejorar botones para touch */
    button, .btn {
        padding: 1rem 1.5rem;
        font-size: 1.1em;
        min-height: 44px; /* Tamaño mínimo para touch */
    }

    /* Mejorar inputs para touch */
    input, select, textarea {
        font-size: 16px; /* Evita zoom en iOS */
        min-height: 44px;
        padding: 0.8rem;
    }

    /* Ajustar espaciados */
    main {
        margin: 1rem auto;
        padding: 0.5rem;
    }
}

/* ===== MEJORAS MÓVILES PARA RESERVATIONS.PHP ===== */

/* ===== MEJORAS PARA EL MENÚ MÓVIL ===== */
@media (max-width: 768px) {
    /* Menú más compacto en dos columnas */
    /*nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem;
        padding: 0.5rem;
    }*/

    nav li {
        margin: 0;
    }

    nav a {
        display: block;
        padding: 0.8rem 0.5rem;
        text-align: center;
        background: #004080;
        margin: 0;
        border-radius: 6px;
        font-size: 0.9em;
        min-height: auto;
        line-height: 1.2;
    }

    nav a:hover {
        background: #002244;
        transform: translateY(-1px);
    }

    /* Asegurar que el contenido principal empiece después del menú */
    main {
        margin-top: 0.5rem;
    }

    /* MEJORAS PARA LAS TARJETAS DE RESERVAS (código anterior) */
    .reservations-table {
        display: none;
    }

    .reservations-cards {
        display: block;
    }

    .reservation-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 1.2rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .reservation-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
        border-bottom: 2px solid #003366;
    }

    .reservation-date {
        font-weight: bold;
        color: #003366;
        font-size: 1.1em;
    }

    .reservation-shift {
        background: #003366;
        color: white;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.9em;
        font-weight: bold;
    }

    .reservation-details {
        margin-bottom: 1rem;
    }

    .reservation-member {
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #333;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .reservation-attendees {
        color: #666;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .reservation-resources {
        font-size: 0.9em;
        color: #555;
        background: #f8f9fa;
        padding: 0.8rem;
        border-radius: 6px;
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .reservation-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 0.7rem 1rem;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.9em;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 80px;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .edit-btn {
        background: #003366;
        color: white;
    }

    .edit-btn:hover {
        background: #002244;
        transform: translateY(-2px);
    }

    .delete-btn {
        background: #dc3545;
        color: white;
    }

    .delete-btn:hover {
        background: #c82333;
        transform: translateY(-2px);
    }

    .pay-btn {
        background: #28a745;
        color: white;
    }

    .pay-btn:hover {
        background: #218838;
        transform: translateY(-2px);
    }

    .no-reservations {
        text-align: center;
        padding: 2rem;
        color: #666;
        background: #f8f9fa;
        border-radius: 8px;
        border: 2px dashed #dee2e6;
    }

    .no-action {
        color: #666;
        font-style: italic;
        font-size: 0.9em;
        padding: 0.5rem;
    }

    /* Mejoras para botones en móviles */
    .actions .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.1em;
        margin-top: 1.5rem;
    }
}

/* En desktop: mostrar tabla normal */
@media (min-width: 769px) {
    .reservations-table {
        display: table;
        width: 100%;
    }

    .reservations-cards {
        display: none;
    }

    /* Restaurar menú original en desktop */
    nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav li {
        margin: 0 1rem;
    }

    nav a {
        padding: 0.5rem 1rem;
    }
}

/* ===== VERSIÓN EXTRA COMPACTA PARA MÓVILES MUY PEQUEÑOS ===== */
@media (max-width: 480px) {
    nav ul {
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem;
        padding: 0.3rem;
    }

    nav a {
        padding: 0.6rem 0.3rem;
        font-size: 0.85em;
    }

    .reservation-card {
        padding: 1rem;
    }

    .action-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85em;
        min-width: 70px;
    }
}

/* ===== MEJORAS MÓVILES PARA TICKETS.PHP ===== */
@media (max-width: 768px) {
    /* Ocultar tabla en móviles */
    .tickets-table {
        display: none;
    }

    /* Mostrar tarjetas en móviles */
    .tickets-cards {
        display: block;
    }

    /* Estilos para cada tarjeta de ticket */
    .ticket-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        padding: 1.2rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .ticket-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
        border-bottom: 2px solid #28a745;
    }

    .ticket-number {
        font-weight: bold;
        color: #28a745;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ticket-date {
        color: #666;
        font-size: 0.9em;
        background: #f8f9fa;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
    }

    .ticket-details {
        margin-bottom: 1rem;
    }

    .ticket-member {
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: #333;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .ticket-reservation {
        color: #666;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95em;
    }

    .ticket-amount {
        font-size: 1.2em;
        font-weight: bold;
        color: #28a745;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed #e0e0e0;
    }

    .ticket-actions {
        text-align: center;
    }

    .view-btn {
        background: #28a745;
        color: white;
        padding: 0.8rem 1.2rem;
        border-radius: 6px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: bold;
        transition: all 0.3s ease;
        width: 100%;
        justify-content: center;
    }

    .view-btn:hover {
        background: #218838;
        transform: translateY(-2px);
    }

    .no-tickets {
        text-align: center;
        padding: 3rem 2rem;
        color: #666;
        background: #f8f9fa;
        border-radius: 8px;
        border: 2px dashed #dee2e6;
    }

    .no-tickets i {
        font-size: 3em;
        margin-bottom: 1rem;
        color: #ccc;
    }
}

/* En desktop: mostrar tabla normal */
@media (min-width: 769px) {
    .tickets-table {
        display: table;
        width: 100%;
    }

    .tickets-cards {
        display: none;
    }
}

/* ===== VERSIÓN COMPACTA PARA MÓVILES PEQUEÑOS ===== */
@media (max-width: 480px) {
    .ticket-card {
        padding: 1rem;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ticket-date {
        align-self: flex-end;
    }

    .view-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9em;
    }
}

/* ===== ESTILOS PARA BOTONES CONTEXTUALES EN TICKETS ===== */
.ticket-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
    justify-content: center;
}

.ticket-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: #003366;
    color: white;
    border: 2px solid #003366;
}

.btn-primary:hover {
    background: #002244;
    border-color: #002244;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

/* Versión móvil para los botones */
@media (max-width: 768px) {
    .ticket-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .ticket-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1em;
    }
}

/* ===== ESTILOS MEJORADOS PARA BOTONES EN VIEW_TICKET.PHP ===== */
.ticket-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
    flex-wrap: wrap;
    justify-content: center;
}

.ticket-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: #003366;
    color: white;
    border-color: #003366;
}

.btn-primary:hover {
    background: #002244;
    border-color: #002244;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
    border-color: #545b62;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

/* Versión móvil para los botones */
@media (max-width: 768px) {
    .ticket-actions {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .ticket-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1em;
        min-width: auto;
    }
}

/* Mejoras para la tabla del ticket en móviles */
@media (max-width: 768px) {
    .ticket-info {
        background: #f8f9fa;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .ticket-info p {
        margin: 0.5rem 0;
        padding: 0.3rem 0;
        border-bottom: 1px solid #e9ecef;
    }

    .ticket-info p:last-child {
        border-bottom: none;
    }
}

/* ===== MENÚ HAMBURGUESA PARA MÓVILES ===== */

/* Botón hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menú lateral móvil */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

/* Header del menú móvil */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #003366;
    color: white;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0.3rem;
}

/* Enlaces del menú móvil */
.nav-links {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #f8f9fa;
}

.nav-link i {
    width: 20px;
    text-align: center;
    color: #003366;
}

/* Información de usuario en móvil */
.user-info-mobile {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #666;
}

.user-info-mobile i {
    margin-right: 0.5rem;
    color: #003366;
}

.user-role {
    display: block;
    font-size: 0.8em;
    color: #28a745;
    margin-top: 0.2rem;
}

/* Overlay para fondo semitransparente */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Ocultar menú desktop en móviles, mostrar hamburguesa */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    /* Ajustar header para el botón hamburguesa */
    .header-content {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .header-content h1 {
        font-size: 1.3em;
        margin: 0;
        flex: 1;
        text-align: center;
    }
}

/* Mostrar menú desktop en tablets/desktop */
@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }

    .desktop-nav {
        display: block;
    }

    .menu-overlay {
        display: none !important;
    }
}

/* ===== JAVASCRIPT PARA EL MENÚ ===== */
<script>
document.addEventListener('DOMContentLoaded', function() {
    const hamburgerBtn = document.getElementById('hamburgerBtn');
    const closeBtn = document.getElementById('closeBtn');
    const mobileNav = document.getElementById('mobileNav');
    const menuOverlay = document.getElementById('menuOverlay');

    // Abrir menú
    hamburgerBtn.addEventListener('click', function() {
        mobileNav.classList.add('active');
        menuOverlay.classList.add('active');
        document.body.style.overflow = 'hidden'; // Prevenir scroll
    });

    // Cerrar menú
    function closeMenu() {
        mobileNav.classList.remove('active');
        menuOverlay.classList.remove('active');
        document.body.style.overflow = ''; // Restaurar scroll
    }

    closeBtn.addEventListener('click', closeMenu);
    menuOverlay.addEventListener('click', closeMenu);

    // Cerrar menú al hacer clic en un enlace (en móviles)
    document.querySelectorAll('.nav-link').forEach(link => {
        link.addEventListener('click', closeMenu);
    });

    // Cerrar menú con tecla ESC
    document.addEventListener('keydown', function(e) {
        if (e.key === 'Escape') {
            closeMenu();
        }
    });
});
</script>

/* ===== MEJORAS DE COLOR Y ESPACIADO PARA MENÚ MÓVIL ===== */

/* Mejorar contraste y colores del menú móvil */
.mobile-nav {
    background: #ffffff !important;
}

.nav-link {
    color: #003366 !important; /* Azul oscuro para mejor contraste */
    font-weight: 500 !important;
    padding: 1rem 1.2rem !important; /* Menos espaciado vertical */
    border-bottom: 1px solid #e8f4f8 !important; /* Azul muy claro */
}

.nav-link:hover {
    background-color: #e8f4f8 !important; /* Fondo azul claro al hover */
    color: #002244 !important;
}

.nav-link i {
    color: #003366 !important; /* Iconos azules */
    font-size: 1.1em !important;
    width: 25px !important; /* Más espacio para iconos */
}

/* Mejorar header del menú móvil */
.nav-header {
    background: #003366 !important;
    color: white !important;
    padding: 1rem !important;
}

.nav-header span {
    font-size: 1.1em !important;
    font-weight: bold !important;
}

.close-btn {
    color: white !important;
    font-size: 1.3em !important;
}

.close-btn:hover {
    color: #ffcc00 !important; /* Amarillo al hover */
}

/* Mejorar información de usuario */
.user-info-mobile {
    background: #f8f9fa !important;
    color: #003366 !important;
    font-weight: 500 !important;
    padding: 1rem !important;
}

.user-info-mobile i {
    color: #003366 !important;
}

.user-role {
    color: #28a745 !important;
    font-weight: bold !important;
}

/* ===== MEJORAS ESPECÍFICAS PARA MÓVILES VERTICALES ===== */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-nav {
        width: 85% !important; /* Ocupar más ancho en vertical */
        max-width: 300px !important;
    }

    .nav-link {
        padding: 0.9rem 1rem !important; /* Menos padding en vertical */
        font-size: 0.95em !important;
    }

    .nav-links {
        padding: 0.5rem 0 !important;
    }
}

/* ===== MEJORAS PARA MÓVILES HORIZONTALES ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav {
        width: 60% !important; /* Menor ancho en horizontal */
        max-width: 320px !important;
    }

    .nav-link {
        padding: 0.8rem 1rem !important; /* Más compacto */
        font-size: 0.9em !important;
    }

    .nav-links {
        max-height: 60vh !important; /* Limitar altura */
        overflow-y: auto !important;
    }
}

/* ===== MEJORAS DE CONTRASTE EXTREMO ===== */
@media (max-width: 768px) {
    .nav-link {
        background: white !important;
        color: #002244 !important; /* Azul más oscuro */
        border-left: 4px solid transparent !important;
    }

    .nav-link:hover {
        background: #e8f4f8 !important;
        border-left-color: #003366 !important;
    }

    /* Mejorar legibilidad del texto */
    .nav-link, .user-info-mobile {
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    }
}

/* ===== BOTÓN HAMBURGUESA MÁS VISIBLE ===== */
.hamburger-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    font-size: 1.4em !important;
    padding: 0.6rem !important;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
}
/* Estilos para método de pago compacto */
.payment-method-compact {
    margin: 1rem 0;
}

.payment-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
}

.payment-select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.payment-select:hover {
    border-color: #003366;
}

/* Para móviles aún más compacto */
@media (max-width: 768px) {
    .payment-method-compact {
        margin: 0.5rem 0;
    }

    .payment-select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

/* Opcional: Estilos específicos para las opciones */
.payment-select option {
    padding: 0.5rem;
    font-size: 1rem;
}

.payment-select option[value="metálico"] {
    background-color: #f8f9fa;
}

.payment-select option[value="tarjeta"] {
    background-color: #f8f9fa;
}
/* Estilos para método de pago ultra compacto */
.payment-method-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.payment-select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.8rem;
}

.payment-select:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.payment-select:hover {
    border-color: #003366;
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
    .payment-method-compact {
        gap: 0.3rem;
        margin: 0.3rem 0;
    }

    .payment-select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .payment-method-compact label {
        font-size: 0.9rem;
    }
}
