:root {
    --primary-color: #001684;
    --secondary-color: #6891f1;
    --accent-color: #4ba2ee;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --gradient-primary: linear-gradient(135deg, #0D47A1, #1976D2, #42A5F5);
}

body {
    background: 
        linear-gradient(135deg, 
            rgba(108, 143, 208, 0.95) 0%,
            rgba(42, 82, 152, 0.85) 25%,
            rgba(65, 105, 175, 0.9) 50%,
            rgba(33, 99, 213, 0.85) 75%,
            rgba(3, 32, 87, 0.95) 100%
        ),
        radial-gradient(
            circle at center,
            rgba(65, 105, 175, 0.6) 0%,
            rgba(117, 155, 221, 0.8) 50%,
            rgba(30, 60, 114, 0.9) 100%
        ),
        url('../img/fondo.png');
 
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 5;
    display: flex;
    flex-direction: column;
}


.fixed-footer {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-top:  auto;
    flex-shrink: 0;
    border-top: 3px solid #000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.main-header {
    background-color: #d6dee7 !important;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}


.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-container img {
    max-height: 100px; 
}

.actions {
    align-items: center;
    gap: 15px;
}

.actions span {
    color: white;
    font-weight: bold;
}


.logo-container img:hover {
    transform: scale(1.05);
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}


.card-header {
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
}

.card-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.card-header.bg-success h3 {
    color: white !important;
}

.card-body {
    background-color: #ffffff82;
    padding: 25px;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
    outline: none;
}

.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: rgb(6, 6, 6);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #78909C;
    color: rgb(0, 0, 0);
}

.btn-secondary:hover {
    background-color: #607D8B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

.alert-danger {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
}

tr:hover {
    background-color: rgba(0, 150, 136, 0.05);
}

.container {
    margin-top: 5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 5rem !important;
    }
    
    .logo-container img {
        max-width: 150px;
    }
    
    .card-header {
        padding: 15px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
} 

.custom-container {
    display: flex;
    justify-content: center;
}

.custom-box {
    background: #ffffff97;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    border: 1px solid #e2e2e26b;
    border-radius: 8px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.custom-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.highlight {
    color: #0088cc;
    font-weight: bold;
}

.custom-alert {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
    font-size: 14px;
    padding: 10px;
    margin-bottom: 20px;
}

.custom-input {
    font-size: 18px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.custom-button {
    background-color: #f87171;
    border: none;
    color: white;
    font-size: 16px;
    padding: 12px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: bold;
}

.custom-button:hover {
    background-color: #ef4444;
}

.horario-btn {
    margin: 5px;
    min-width: 100px;
}
        
.horario-btn.selected {
    background-color: #198754;
    color: white;
}

.img-conduciendo {
    width: 100vw;              
    height: 250px;             
    object-fit: cover;         
    margin: 0;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
}

.reserva-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch; /* importante para igualar altura */
    flex-wrap: wrap;
}

.custom-box,
.info-box {
    flex: 1 1 300px; /* se expanden igual, mínimo 400px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

/* Opcional: asegúrate de que los elementos internos no desborden */
.custom-box form,
.info-box > * {
    flex-shrink: 0;
}

/* Responsive: apilar en pantallas chicas */
@media (max-width: 768px) {
    .reserva-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .custom-box, .info-box {
        max-width: 100%;
    }
}

.link-subrayado {
    color: #0088cc;
    text-decoration: none;
    font-weight: 500;
}

.link-subrayado:hover {
    text-decoration: underline;
    color: #005fa3;
}

.info-box h5 {
    color: var(--primary-color);
    font-weight: bold;
}

.info-list {
    list-style-type: disc;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 6px;
}

.reserva-wrapper-container {
    padding: 0 2rem; /* Margen interno izquierdo y derecho */
}

@media (min-width: 992px) {
    .navbar-nav .nav-link {
      background-color: #f1f1f1;
      margin-left: 10px;
      padding: 10px 18px;
      border-radius: 8px;
      color: #333;
      transition: background-color 0.2s ease;
      text-align: center;
      font-weight: 500;
    }
  
    .navbar-nav .nav-link:hover {
      background-color: #dee2e6;
      color: #000;
    }
  
    .navbar-nav .btn-secondary {
      background-color: #6c757d;
      color: white;
      border: none;
    }
  
    .navbar-nav .btn-secondary:hover {
      background-color: #5a6268;
      color: white;
    }
}
/* Estilos para input-group */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    border-right: none;
    flex-shrink: 0;
    min-width: 60px;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.input-group .form-control:focus {
    border-left: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

/* Estilos específicos para el campo de celular */
.col-md-6 .input-group {
    width: 100%;
    box-sizing: border-box;
}

.col-md-6 .input-group .form-control {
    width: calc(100% - 60px);
    flex: 1;
}

/* Estilos específicos para el campo de celular */
.celular-input-group {
    width: 100% !important;
    display: flex !important;
}

.celular-input-group .input-group-text {
    width: 60px;
    flex-shrink: 0;
    flex-grow: 0;
}

.celular-input-group .form-control {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.licencia-checkbox:checked + .form-check-label {
    font-weight: 600;
    color: #0d6efd;
}

#licencias-checkbox-container.border-danger,
#licencias-actuales-container.border-danger,
#licencias-ampliar-container.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.form-check {
    padding: 10px; /* Aplica siempre */
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: #f8f9fa;
}
