/* Variables de colores - Verde mango biche */
:root {
    --primary-color: #8BC34A; /* Verde mango biche */
    --primary-dark: #689F38; /* Verde mango biche más oscuro */
    --secondary-color: #4CAF50; /* Verde secundario */
    --accent-color: #FF9800; /* Naranja para acentos/alertas */
    --danger-color: #F44336; /* Rojo para acciones peligrosas */
    --payment-color: #2196F3; /* Azul para pagos */
    --text-color: #333; /* Texto oscuro para contraste */
    --bg-color: #f8f9f6; /* Fondo blanco con tono verdoso muy sutil */
    --card-color: #fff; /* Tarjetas blancas */
    --border-color: #DCEDC8; /* Borde verde claro */
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 25px;
}

/* Barra de navegación */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.navbar-menu button {
    margin-left: 10px;
}

/* Encabezado */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

header h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #555;
    font-size: 1.2rem;
}

/* Dashboard */
.dashboard {
    display: grid;
    gap: 20px;
}

.dashboard-card {
    background: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(139,195,74,0.1);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(139,195,74,0.15);
}

.dashboard-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.dashboard-card h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Lista de tours */
.tour-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.tour-list {
    list-style: none;
    padding: 0;
}

.tour-list li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: row; /* Cambiado de column a row */
    align-items: center;
    gap: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    justify-content: space-between; /* Alinea info a la izq y acciones a la der */
}

.tour-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.tour-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: auto; /* Cambiado de 100% para que no ocupe todo el espacio */
    flex: 1 1 auto;
}

.tour-info > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tour-date {
    color: #666;
    font-size: 0.95em;
    margin-left: 8px;
}

.tour-precio {
    color: var(--primary-dark);
    font-weight: bold;
    margin-right: 16px;
}

.tour-estado {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.estado-completado {
    background: #e8f5e9;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.estado-pendiente {
    background: #fff3e0;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.tour-recaudado {
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.95em;
    font-weight: 600;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tour-actions {
    display: flex;
    gap: 8px;
    margin-top: 0; /* Quitado el margen superior */
    align-items: center;
    justify-content: flex-end;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #D32F2F; /* Rojo más oscuro */
}

.btn-payment {
    background-color: var(--payment-color);
    color: white;
}

.btn-payment:hover {
    background-color: #1976D2; /* Azul más oscuro */
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
}

.btn-secondary i {
    margin-right: 5px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* Contenedor para el campo de URL */
.url-input-container {
    margin-top: 10px;
}

.url-input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.url-input-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
    position: relative;
    padding: 25px;
    border-left: 5px solid var(--primary-color);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 15px 25px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -25px -25px 20px -25px;
}

.modal-header h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.modal-body {
    padding: 0;
}

/* Botón de cierre mejorado */
.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--danger-color);
    background-color: rgba(244, 67, 54, 0.1);
}

/* Mejoras para notificaciones */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 90%;
}

.notification {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    font-weight: bold;
    animation: fadeInOut 4s ease forwards;
    opacity: 0;
    width: 100%;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification i {
    font-size: 1.3rem;
}

.notification.error {
    background-color: var(--danger-color);
}

.notification.success {
    background-color: var(--secondary-color);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    10% {
        opacity: 1;
        transform: translateX(0);
    }
    90% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50px);
    }
}

/* Mejoras para flyers */
.tour-flyer-container {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.tour-flyer-container h4 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-flyer {
    text-align: center;
    max-height: 450px;
    overflow: hidden;
}

.tour-flyer img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.flyer-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.flyer-link:hover img {
    transform: scale(1.03);
}

/* Estilo específico para el modal de edición de cliente */
#editClientModal.edit-client-modal .modal-content {
    border-left: 6px solid var(--primary-color);
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

#editClientModal.edit-client-modal .modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 25px;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    margin: 0;
}

#editClientModal.edit-client-modal .modal-header h2 {
    color: white;
    font-size: 1.8rem;
}

#editClientModal.edit-client-modal .modal-body {
    padding: 25px;
}

#editClientForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#editClientForm .form-group {
    margin-bottom: 15px;
}

#editClientForm label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#editClientForm input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#editClientForm input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
    outline: none;
}

#editSeatMapContainer {
    grid-column: 1 / -1;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

#editSeatMapContainer h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

#editSeatMapContainer .seat-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#deleteClientButton,
#cancelReservedSeatsButton,
#confirmCancelReservedSeatsBtn {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#deleteClientButton {
    background-color: var(--danger-color);
    color: white;
}

#deleteClientButton:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Modal de confirmación de eliminación */
#confirmDeleteModal .modal-content,
#seatCancelModal > div {
    max-width: 450px;
    text-align: center;
    padding: 30px;
    border-left: 8px solid var(--danger-color);
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

#confirmDeleteModal h2,
#seatCancelModal h3 {
    color: var(--danger-color);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#confirmDeleteModal h2 i,
#seatCancelModal h3 i {
    font-size: 2rem;
}

#confirmDeleteModal p,
#seatCancelModalMsg {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #333;
}

#confirmDeleteModal .modal-footer,
#seatCancelModal div:last-child {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Centrar y agrandar radio buttons de selección de bus en la descripción del tour */
#busRadioContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 18px 10px;
    background: #f4f8ec;
    border-radius: 14px;
    font-size: 1.18rem;
}

#busRadioContainer label {
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    gap: 8px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.2s;
}

#busRadioContainer input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary-color);
    margin-right: 8px;
    cursor: pointer;
}

#busRadioContainer label:hover {
    background: #e8f5e9;
}

/* Responsive para radios */
@media (max-width: 600px) {
    #busRadioContainer {
        flex-direction: column;
        gap: 8px;
        align-items: center; /* Centrado también en móvil */
    }
    #busRadioContainer label {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .navbar-brand {
        margin-bottom: 10px;
    }
    
    .dashboard-card {
        padding: 15px;
    }

    .table {
        font-size: 12px;
    }

    .table th, .table td {
        padding: 10px;
    }

    .table .btn-secondary {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .table th, .table td {
        font-size: 10px;
        padding: 8px;
    }

    .table .btn-primary, .table .btn-secondary {
        font-size: 9px;
        padding: 3px 6px;
    }

    .dashboard-card {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .tour-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .tour-info > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .tour-actions {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* Estilos específicos para la tabla de clientes de tour */
#tourClientTable {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #f8f9f6;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139,195,74,0.08);
    margin-bottom: 20px;
}

#tourClientTable th, #tourClientTable td {
    padding: 10px 8px;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

#tourClientTable th {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    z-index: 10;
    font-size: 0.85em;
    white-space: nowrap;
    padding: 10px 5px;
}

#tourClientTable td {
    padding: 8px 5px;
    font-size: 0.9em;
    white-space: nowrap;
}

#tourClientTable tr:last-child td {
    border-bottom: none;
}

#tourClientTable tbody tr:hover {
    background: #eafbe7;
}

#tourClientTable td {
    vertical-align: middle;
    font-size: 15px;
    color: #333;
}

#tourClientTable .actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

#tourClientTable .btn-primary,
#tourClientTable .btn-payment {
    padding: 4px 8px;
    font-size: 0.85em;
    border-radius: 4px;
}

#tourClientTable .btn-primary i,
#tourClientTable .btn-payment i {
    margin-right: 4px;
}

#tourClientTable .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

#tourClientTable .btn-primary:hover {
    background: var(--primary-dark);
}

#tourClientTable .btn-payment {
    background: var(--payment-color);
    color: #fff;
    border: none;
}

#tourClientTable .btn-payment:hover {
    background: #1976D2;
}

/* Sección de totales con mejor visualización */
#paymentTotals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background: #f4f8ec;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

#paymentTotals p {
    margin: 5px 0;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Mejoras de formato y estilo */
body {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.container {
    padding: 15px 25px;
}

/* Mejora del espaciado para la gestión de clientes */
.dashboard-card {
    margin-bottom: 32px;
    box-shadow: 0 6px 12px rgba(139,195,74,0.1);
    transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(139,195,74,0.15);
}

/* Mejora para la tarjeta de clientes */
.dashboard-card:nth-child(2) {
    max-width: 98%;
    margin-left: 1%;
    padding-left: 2%;
}

/* Formulario de cliente más compacto y organizado */
#clientForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    background: #f4f8ec;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#clientForm .form-group {
    margin-bottom: 10px;
}

#clientForm button {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* Mejoras específicas para la tabla de gestión de clientes */
.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(139,195,74,0.08);
    padding-bottom: 5px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch; /* Mejor scroll en iOS */
}

#tourClientTable {
    width: 100%;
    table-layout: auto;
    white-space: nowrap;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95em;
}

/* Optimización de la columna nombre */
#tourClientTable td.client-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    text-align: left;
    padding-left: 10px;
    cursor: default;
}

/* Columnas específicas - Ajustados para usar menos espacio */
#tourClientTable th:nth-child(1), #tourClientTable td:nth-child(1) { min-width: 130px; max-width: 130px; } /* Nombre */
#tourClientTable th:nth-child(2), #tourClientTable td:nth-child(2) { min-width: 50px; } /* Cupos */
#tourClientTable th:nth-child(3), #tourClientTable td:nth-child(3) { min-width: 40px; } /* Bus */
#tourClientTable th:nth-child(4), #tourClientTable td:nth-child(4) { min-width: 90px; } /* Efectivo */
#tourClientTable th:nth-child(5), #tourClientTable td:nth-child(5) { min-width: 90px; } /* Bancolombia */
#tourClientTable th:nth-child(6), #tourClientTable td:nth-child(6) { min-width: 90px; } /* Nequi */
#tourClientTable th:nth-child(7), #tourClientTable td:nth-child(7) { min-width: 110px; } /* Total Transf */
#tourClientTable th:nth-child(8), #tourClientTable td:nth-child(8) { min-width: 100px; } /* Total Efec */
#tourClientTable th:nth-child(9), #tourClientTable td:nth-child(9) { min-width: 100px; } /* Total Compl */
#tourClientTable th:nth-child(10), #tourClientTable td:nth-child(10) { min-width: 110px; } /* Saldo Pend */
#tourClientTable th:nth-child(11), #tourClientTable td:nth-child(11) { min-width: 110px; } /* Estado */
#tourClientTable th:nth-child(12), #tourClientTable td:nth-child(12) { min-width: 130px; } /* Acciones */

/* Estilos para el desglose de abonos en tooltip */
.desglose-tooltip {
    position: relative;
    cursor: pointer;
    border-bottom: 1px dashed #aaa;
    display: inline-block;
}

.desglose-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 180px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateY(10px) translateX(-50%);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    font-size: 0.9em;
    white-space: normal;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e0e0e0 transparent transparent transparent;
}

/* Estilos específicos para cada método de pago */
#tourClientTable td:nth-child(4) .desglose-tooltip { color: #689F38; } /* Efectivo */
#tourClientTable td:nth-child(5) .desglose-tooltip { color: #1976D2; } /* Bancolombia */
#tourClientTable td:nth-child(6) .desglose-tooltip { color: #FF5722; } /* Nequi */

/* Estilos para carga de flyers */
.flyer-preview-container {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
}

.flyer-preview-container h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.flyer-preview-container h4 i {
    margin-right: 10px;
}

.flyer-preview {
    max-width: 100%;
    max-height: 300px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.upload-status {
    margin-top: 8px;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.upload-status.loading {
    display: flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
}

.upload-status.loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 3px solid #1976d2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

.upload-status.success {
    display: block;
    background-color: #e8f5e9;
    color: #388e3c;
}

.upload-status.error {
    display: block;
    background-color: #ffebee;
    color: #d32f2f;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

input[type="file"] {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 100%;
    background-color: white;
}

/* Estilos para el botón deshabilitado */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mejorar responsive para la vista previa del flyer */
@media (max-width: 600px) {
    .flyer-preview {
        max-height: 200px;
    }
}

@media (max-width: 600px) {
    #paymentTotals {
        grid-template-columns: 1fr;
    }
    
    /* Mejoras para botones en móvil */
        .btn-primary, .btn-danger, .btn-payment {
            padding: 8px 12px;
            font-size: 0.95em;
        }
    }


@media (max-width: 480px) {
    /* Ajustes específicos para móviles pequeños */
    body {
        font-size: 13px;
    }
    
    .dashboard-card {
        padding: 12px 8px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    #tourClientTable {
        font-size: 0.8em;
    }
    
    #tourClientTable th, #tourClientTable td {
        padding: 4px 2px;
        font-size: 0.8em;
    }
    
    #tourClientTable .actions {
        flex-direction: column;
        gap: 4px;
    }
    
    #tourClientTable .btn-primary,
    #tourClientTable .btn-payment {
        width: 100%;
        justify-content: center;
    }

    /* Mejoras para los modales en dispositivos pequeños */
    .modal-content {
        width: 95%;
        padding: 15px 10px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Mejora para pantallas táctiles */
@media (pointer: coarse) {
    /* Para dispositivos táctiles, aumentamos ligeramente el tamaño de los elementos interactivos */
    .btn-primary, .btn-danger, .btn-payment,
    #tourClientTable .btn-primary,
    #tourClientTable .btn-payment,
    #busRadioContainer label,
    .form-group input,
    .form-group select {
        min-height: 38px;
    }
    
    #busRadioContainer input[type="radio"] {
        width: 20px;
        height: 20px;
    }
}

/* Deshabilitar :hover en dispositivos táctiles */
@media (hover: none) {
    .seat-btn:hover,
    .bus-btn:hover {
        background-color: inherit; /* Mantener el color original */
        cursor: default; /* Evitar el cambio de cursor */
    }
}

/* Estilos para la visualización de flyer en la lista de tours */
.tour-flyer-icon {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 0.8rem;
}

.tour-flyer-thumbnail {
    margin: 5px 0;
    max-width: 100px;
    max-height: 100px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tour-flyer-thumbnail:hover {
    transform: scale(1.05);
}

.tour-flyer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para la visualización del flyer en la página de detalles */
.tour-flyer-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    /* Ajuste para tamaño pequeño en tour.html */
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.tour-flyer {
    text-align: center;
    max-height: 200px;
    overflow: hidden;
}

.tour-flyer img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.flyer-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.flyer-link:hover {
    transform: scale(1.02);
}

/* Ajustes para la visualización en la lista de tours */
.tour-list .tour-item.has-flyer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .tour-list .tour-item.has-flyer {
        grid-template-columns: 1fr;
    }
    
    .tour-flyer-thumbnail {
        margin: 10px auto;
        max-width: 150px;
        max-height: 150px;
    }
}

/* Estilos para el botón de subida de PostImage */
.upload-container {
    margin-bottom: 15px;
    text-align: center;
}

.upload-container button {
    padding: 10px 16px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5bc0de; /* Color azul característico de servicios de carga */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.upload-container button:hover {
    background-color: #31b0d5;
    transform: translateY(-2px);
}

.upload-container button i {
    margin-right: 8px;
    font-size: 1.1em;
}

.upload-container small {
    display: block;
    margin-top: 8px;
    color: #666;
}

/* Mejora del campo URL */
.url-input-container {
    margin-top: 15px;
}

.url-input-container input {
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.url-input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.25);
    outline: none;
}

/* Animación para el croquis de asientos */
.seat-map-animated {
    animation: seatMapFadeIn 0.7s cubic-bezier(.4,2,.3,1);
}
@keyframes seatMapFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(40px);}
    to   { opacity: 1; transform: scale(1) translateY(0);}
}

/* Mejorar botones de asientos */
.seat-btn {
    width: 54px !important;
    height: 54px !important;
    margin: 7px !important;
    font-size: 1.18rem !important;
    border-radius: 10px !important;
    border: 2.5px solid #c5e1a5 !important;
    background: linear-gradient(145deg, #e8f5e9 60%, #c8e6c9 100%);
    color: #333 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(139,195,74,0.10);
    transition: background 0.25s, box-shadow 0.25s, transform 0.18s;
    outline: none;
    position: relative;
}
.seat-btn.selected {
    background: linear-gradient(145deg, #ffecb3 60%, #ff9800 100%);
    color: #fff !important;
    border-color: #ff9800 !important;
    transform: scale(1.13);
    box-shadow: 0 4px 18px rgba(255,152,0,0.13);
}
.seat-btn.occupied {
    background: linear-gradient(145deg, #ffcdd2 60%, #f44336 100%);
    color: #fff !important;
    border-color: #f44336 !important;
    cursor: not-allowed;
    box-shadow: 0 2px 10px rgba(244,67,54,0.10);
}


/* Animación para el botón de reservar */
#reserveButton {
    transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
}
#reserveButton:active {
    background: #689F38;
    box-shadow: 0 2px 8px rgba(139,195,74,0.18);
    transform: scale(0.97);
}

/* Inputs elegantes */
input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select {
    border: 2px solid #dcedc8;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1.08rem;
    background: #f9fbe7;
    transition: border 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}
input:focus, select:focus {
    border: 2px solid #8bc34a;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.10);
    outline: none;
}

/* Mejorar títulos */
header h1, h3, h4 {
    letter-spacing: 1px;
    font-weight: 700;
}

