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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdf7fb 0%, #fcf8ff 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: left;
    margin-bottom: 10px;    
    color: rgb(161, 161, 161);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.header img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h2 {
    margin-left: auto;
    color: #5e5e5e;
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 5px;
    width: 100%;
}

.header p {
    margin-left: auto;
    text-align: right;
    width: 100%;
    margin-top: -15px;
}

.search-panel {
    background: rgba(231, 225, 225, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-panel > div:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.passenger-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.pet-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.pet-option input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #f09966;
    margin: 0;
    width: auto;
}

.pet-option label {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.clock-section {
    padding-left: 0px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 98%;
    box-sizing: border-box;
}

.digital-clock {
    flex: 1;
    min-width: 300px;
    padding-top: 10px;
    padding-left: 24px;
    padding-bottom: 10px;
    background-color: #e8e2e3;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.travel-time-section {
    margin-bottom: 20px;
}

.travel-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.travel-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.travel-btn.active {
    background: #28a745; /* Color de fondo verde */
    color: white;
    border-color: #28a745; /* Color del borde verde */
}

.travel-btn:hover {
    border-color: #667eea;
}

.schedule-section {
    margin-top: 15px;
    width: 100%;
    display: none;
}

.schedule-section.show {
    display: block;
}

.schedule-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.schedule-inputs input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.schedule-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9b18 0%, #e76225 100%);
    color: white;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #555;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.map-container {
    background: rgba(247, 245, 245, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

#map {
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.route-info {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    display: none;
}

.route-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.trip-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trip-summary h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.contact-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-summary h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 180px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
    display: none;
}

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

    .header {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        gap: 10px;
    }

    .header img {
        margin: 0 auto 10px;
    }

    .header p {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

    .search-panel {
        padding: 20px;
        margin-bottom: 20px;
    }

    .search-panel > div:first-child {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }

    .passenger-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .travel-buttons {
        flex-direction: column;
    }

    .schedule-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    #map {
        height: 400px;
    }

    .route-stats {
        grid-template-columns: 1fr 1fr;
    }

    .clock-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .digital-clock {
        margin-right: 0;
        margin-bottom: 10px;
        min-width: 100%;
    }

    .legales {
        margin-top: 10px;
        margin-left: 0;
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .route-stats {
        grid-template-columns: 1fr;
    }
}

.footer-text {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #000000;
    font-size: 0.9rem;
}

.footer-text a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-text a:hover {
    text-decoration: underline;
    margin-bottom: 20px;
}

/* Ensure tariff display is visible */
.tariff-display {
    display: block !important;
}

.legales {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
    margin-top: 23px;
    margin-left: 40px;
    max-width: 400px;
    text-align: right;
}

.legales a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1.2;
    text-align: right;
}

.legales a:hover {
    opacity: 1;
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Superposición oscura */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 80vh; /* Altura máxima para contenido desplazable */
    overflow-y: auto; /* Permite desplazamiento vertical si el contenido es largo */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: #777777;     
}

.promo-modal-content {
    text-align: center;
}

.payment-socio-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.socio-section {
    display: flex;
    align-items: start;
    margin-top: 0;
}

.pet-option label,
.socio-section label {
    font-weight: 600;
    color: #555;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
    background: none;
    width: auto;
    font-size: 16px;
}

.pet-option input[type="checkbox"],
.socio-section input[type="checkbox"] {
    transform: scale(1.6);
    accent-color: #e79856;
    margin-top: 24px;
    margin-left: 20px;
    margin-right: 10px;
    width: 160px;
}

.input-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    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='currentColor' 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 15px center;
    background-size: 15px;
    padding-right: 40px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.input-group select option {
    padding: 10px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .input-group select {
        padding: 12px;
        font-size: 14px;
        background-size: 12px;
        padding-right: 35px;
    }

    .input-group select option {
        padding: 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .input-group select {
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
        background-size: 10px;
        padding-right: 30px;
    }

    .input-group select option {
        padding: 6px;
        font-size: 13px;
    }
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

.contact-form h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

.service-status {
    margin-left: auto;
    width: 100%;
    margin-top: 5px;
    text-align: right;
}

.service-status select {
    width: auto;
    min-width: 250px;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    color: #666666;
    background-color: #f8f9fa;
    cursor: not-allowed;
    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='currentColor' 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 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.service-status select:disabled {
    opacity: 0.8;
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .service-status select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .passenger-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .input-group label {
        font-size: 16px;
    }

    .input-group select {
        padding: 15px;
        font-size: 16px;
        background-size: 15px;
        padding-right: 40px;
    }

    .pet-option label {
        font-size: 16px;
    }

    .schedule-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .schedule-inputs input {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .passenger-section {
        gap: 10px;
    }

    .input-group select {
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
        background-size: 10px;
        padding-right: 30px;
    }

    .pet-option {
        gap: 8px;
        padding: 8px 0;
    }

    .pet-option input[type="checkbox"] {
        transform: scale(1.1);
    }

    .pet-option label {
        font-size: 13px;
    }
}

.payment-section {
    width: 100%;
    margin-top: 0;
}

.payment-section select,
.payment-section input,
.payment-section label {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    margin-top: 0;
}

.payment-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    padding: 0;
    background: none;
    width: auto;
}

.payment-section select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
    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='currentColor' 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 15px center;
    background-size: 15px;
    padding-right: 40px;
}

.payment-section select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .payment-section select {
        padding: 12px;
        font-size: 14px;
        background-size: 12px;
        padding-right: 35px;
    }
}

@media (max-width: 480px) {
    .payment-section select {
        padding: 10px;
        font-size: 13px;
        background-size: 10px;
        padding-right: 30px;
    }
}

.red-text {
    color: #ff0000;
}