
/* ── Branding eyebrow (reemplaza header) ────────────── */
.page-eyebrow {
    text-align: center;
    margin-bottom: 28px;
}

.page-eyebrow .logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(37,99,235,.07);
    border: 1px solid rgba(37,99,235,.18);
    border-radius: 999px;
    padding: 6px 14px;
}

.page-title {
    margin-top: 14px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #111827;
}

.page-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* General */
body {
    font-family: 'DM Sans', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

h1 {
    font-size: 28px;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
}

/* Cabecera específica de Traslados */
.app-header {
    background: radial-gradient(circle at top left, #3b82f6 0, #1f2937 55%, #111827 100%);
    color: #ffffff;
    padding: 24px 16px;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.header-title {
    margin: 0;
    color: #ffffff;
    font-family: 'DM Sans', 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
}

.header-subtitle-text {
    margin: 6px 0 0;
    color: #e5e7eb;
    font-family: 'DM Sans', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.header-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 600;
    color: #93c5fd;
    margin: 0 0 6px;
}

.header-subtitle {
    margin-top: 8px;
    font-size: 14px;
    max-width: 520px;
    color: #e5e7eb;
}

.header-badge {
    text-align: right;
}

.badge-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(191, 219, 254, 0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-copy {
    margin-top: 6px;
    font-size: 12px;
    color: #d1d5db;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-badge {
        text-align: left;
    }
}

.containerAll {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0;
}

.rectangle {
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    width: 160px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    padding: 12px 10px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
    overflow: hidden;
}

.rectangle:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.rectangle img {
    max-width: 90px;
    height: 63px;
    object-fit: contain;
    transition: transform 0.3s;
}

.rectangle:hover img {
    transform: scale(1.1);
}

.rectangle h4 {
    font-size: 12px;
    margin: 6px 0 0;
    color: #1f2937;
    font-weight: 600;
}

.buttonSmall, .buttonLarge {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background: #3b82f6; /* Azul vibrante */
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.buttonSmall:hover, .buttonLarge:hover {
    background: #2563eb; /* Azul más oscuro */
    transform: translateY(-3px);
}


.buttonLarge {
    display: block;
    margin: 30px auto;
    font-size: 16px;
    width: fit-content;
    text-align: center;
}


@media (max-width: 768px) {
    .containerAll {
        padding: 10px;
        gap: 15px;
    }

    .rectangle {
        width: 100%;
        max-width: 160px;
    }
}


/* TRASLADOS */
.traslados-shell {
    max-width: 1100px;
    margin: 0 auto 32px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 20px;
}

.stepper-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.stepper-item--active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.step-text {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

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

.options-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
}

.options-container .button {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.options-container .button:hover {
    background: #2563eb;
    transform: translateY(-3px);
}




.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
}

input[type="text"],
input[type="tel"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
    background: #ffffff;
}


button.button {
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

button.button:hover {
    background: #2563eb;
    transform: translateY(-3px);
}


/* Tabla de datos */
.data-table h3 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1f2937;
}

.data-table p{
    font-size:11px;
}
.data-table-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.data-table-subtitle {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.route-summary {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #111827;
}

.data-table-meta {
    text-align: right;
}

.data-footnotes {
    margin-top: 8px;
    color: #6b7280;
}

.data-cta {
    margin-top: 16px;
    text-align: center;
}

.data-cta-help {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

/* Resaltar columna de precio */
#traslados-table td:nth-child(5) {
    font-weight: 600;
}

th {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

tbody tr:hover {
    background-color: #e5f1ff;
}

/*buscador*/

.data-table {
    margin-top: 2rem;
    display: none; /* Oculta la tabla por defecto */
}

.form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.form-container h3 {
    font-size: 1.25rem;
    color: #111827;
    margin: 0 0 0.5rem;
}

.form-header,
.card-form-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.form-lead {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.form-meta {
    text-align: right;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background-color: #e5efff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pill + .pill {
    margin-left: 6px;
}

.pill-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.card-form {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 1.75rem 1.75rem 1.5rem;
}

.subsection-title {
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
    color: #111827;
}

/* Formulario horizontal */
#search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem; 
}

.form-group {
    flex: 1; 
    min-width: 200px; 
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555555;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #333333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.form-group select:focus {
    border-color: #007bff;
    outline: none;
    background-color: #ffffff;
}

/* Botón de formulario */
button[type="submit"] {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
    flex: 0 1 auto; 
    min-width: 120px; 
}

/* Ajuste fino para el botón del buscador de traslados */
#search-form button[type="submit"] {
    margin-top: 6px;
}
button[type="submit"]:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}


@media (max-width: 768px) {
    #search-form {
        flex-direction: column; 
        align-items: stretch;
    }

    .form-group {
        min-width: unset; 
    }
}

/* Clase para el botón seleccionado */
.button.selected {
    background-color: white; 
    color: #3b82f6; 
    border: 2px solid #3b82f6; 
}
.button.selected:hover {
    
    color:white; 
    
}

/* Volver atras boton */

button.back-button{
    width: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #3b82f6;
}
button.back-button:hover{
    color: #f3f4f6;
}


.back-button {
    margin: 20px; 
    text-align: left; 
}


.back-button .back-link {
    text-decoration: none; 
    font-size: 16px; 
    color: #3b82f6; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center;
    background: #f3f4f6; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px; 
    padding: 10px 15px; 
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; 
}


.back-button .back-link .arrow {
    margin-right: 8px;
    font-size: 18px; 
    line-height: 1; 
    color: #2563eb; 
}


.back-button .back-link:hover {
    background: #3b82f6; 
    color: white; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

.back-button .back-link:hover .arrow {
    color: white; 
}

/* Opciones y formularios de reserva */
.options-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.options-header-copy h3 {
    margin: 0 0 0.4rem;
}

.options-header-copy .form-lead {
    margin: 0;
}

.button-ghost {
    margin-top: 1rem;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background-color: #ffffff;
}

.button-ghost:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.helper-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
}

.pasajero {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px dashed #cbd5f5;
    background-color: #f9fafb;
}

.pasajero h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #1f2937;
}


.back-button .back-link:active {
    transform: translateY(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.text-small-input{
    margin: 3px 0 0 3px;
    color: #747474;
    font-size: 12px;
}

/* Modal */

.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    justify-content: center;
    align-items: center;
}

/* Contenido del modal */
.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease-out;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Botón cerrar (x) */
.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Body */
.modal-body img {
    width: 42px;
    margin: 0 auto 15px;
}
.modal-body h3 {
    margin: 0 0 10px;
}
.modal-body .msg {
    font-size: 16px;
    color: #444;
}

/* Footer */
.modal-footer {
    margin-top: 20px;
}
.modal-footer .btn-close-traslado {
    padding: 8px 16px;
    border: none;
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
.modal-footer .btn-close-traslado:hover {
    background-color: #2563eb;
}

/* Mostrar modal */
.modal.show {
    display: flex;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .options-container {
        flex-direction: column;
        gap: 10px;
    }

    .form-container {
        width: 90%;
    }

    /* Tabla de resultados en formato "card" para móvil */
    #traslados-table {
        border: 0;
    }

    #traslados-table thead {
        display: none;
    }

    #traslados-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background-color: #ffffff;
        overflow: hidden;
    }

    #traslados-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    #traslados-table td:last-child {
        border-bottom: none;
    }

    #traslados-table td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 8px;
        color: #6b7280;
    }

    #traslados-table td.select-cell {
        justify-content: flex-end;
    }

    #traslados-table td.select-cell::before {
        content: '';
        display: none;
    }

    /* Ocultar pill de tarifas en móviles */
    .data-table-meta .pill {
        display: none;
    }

    /* Compactar tabla en móviles */
    #traslados-table th,
    #traslados-table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    #traslados-table .button.select-traslado-btn {
        padding: 6px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
}
a.buttonDisabled {
	cursor:not-allowed;
	opacity: 0.65;
}
.buttonDisabled.rectangle:hover {
	transform: none;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}
.buttonDisabled.rectangle:hover img {
	transform: none;
}
