/* Tema Default - estilos base */
body { 
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%); 
    background-attachment: fixed;
    color: #222;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.navbar { 
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem 2rem !important;
    transition: all 0.3s ease;
}
.navbar:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }

/* Animación de rotación del logo */
@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#parkingLogo {
    display: inline-block !important;
    transform-origin: center center;
}

.navbar-brand-logo {
    width: auto;
    height: 56px;
    max-height: 56px;
    object-fit: contain;
}

.navbar-table {
    width: 100%;
    table-layout: fixed;
}

.navbar-top-row {
    white-space: nowrap;
}

.navbar-logo-cell,
.navbar-menu-cell {
    width: 1%;
    white-space: nowrap;
}

.navbar-company-cell {
    width: auto;
    min-width: 0;
}

.navbar-company-name {
    display: block;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#parkingLogo.spinning {
    animation: logoSpin 1s ease-in-out;
}

/* Desactivar animaciones para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    #parkingLogo.spinning {
        animation: none !important;
    }
}

.navbar .form-select { 
    border-radius: 20px; 
    padding: 8px 16px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
.navbar .form-select:hover { border-color: #999; background-color: #fafafa; }
.modal-title-theme { 
    color: #222 !important; 
    font-weight: bold; 
    background: #666; 
    padding: 8px 20px; 
    border-radius: 20px; 
    display: inline-block;
    transition: all 0.3s ease;
}
.modal-title-theme:hover { background: #555; }

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVE NAVBAR - HAMBURGUESA MENU */
/* ════════════════════════════════════════════════════════════════ */

/* Responsive logo sizes */
@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0.5rem !important;
    }

    .navbar-logo-cell,
    .navbar-menu-cell {
        width: 52px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-company-cell {
        padding: 10px 6px !important;
    }

    .navbar-company-name {
        font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    }

    img[alt="Logo"] {
        height: 52px !important;
        max-height: 52px !important;
    }

    .navbar-toggler {
        padding: 8px 10px !important;
    }

    .navbar-toggler i {
        font-size: 20px !important;
    }

    .navbar-table,
    .navbar-table > tbody {
        display: block !important;
        width: 100% !important;
    }

    .navbar-table > tbody > tr.navbar-top-row {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0.35rem;
        width: 100% !important;
    }

    .navbar-table > tbody > tr.navbar-top-row > td {
        display: block !important;
        width: auto !important;
    }

    .navbar-table > tbody > tr:not(.navbar-top-row),
    .navbar-table > tbody > tr:not(.navbar-top-row) > td {
        display: block !important;
        width: 100% !important;
    }

    .navbar-logo-cell .navbar-brand-link,
    .navbar-menu-cell {
        display: flex !important;
        align-items: center;
    }

    .navbar-menu-cell {
        justify-content: flex-end;
    }

    .navbar-company-cell,
    .navbar-company-name {
        min-width: 0 !important;
        width: 100% !important;
    }

    .navbar .collapse > div,
    .navbar .collapse > div > div,
    .navbar .collapse form {
        width: 100% !important;
    }

    .navbar .collapse > div > div {
        align-items: stretch !important;
    }

    .navbar .collapse form {
        justify-content: flex-start !important;
        gap: 8px;
    }

    .navbar .collapse .form-select,
    .navbar .collapse button.form-select {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }
}

/* Mobile pequeño: <480px */
@media (max-width: 479px) {
    img[alt="Logo"] {
        height: 46px !important;
        max-height: 46px !important;
    }
}

/* Mobile muy pequeño: <320px */
@media (max-width: 320px) {
    img[alt="Logo"] {
        height: 40px !important;
        max-height: 40px !important;
    }
}

/* Estilos del botón hamburguesa Bootstrap - SIEMPRE VISIBLE */
.navbar-toggler {
    display: inline-block !important;
    transition: all 0.3s ease;
    visibility: visible !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Forzar que sea visible en TODAS las resoluciones, incluso desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: inline-block !important;
        visibility: visible !important;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* MEJORAS VISUALES MODERNAS - CONSERVANDO FUNCIONALIDAD */
/* ════════════════════════════════════════════════════════════════ */

/* Mejorar el contenedor del formulario */
.contenedor_form {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenedor_form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Mejorar inputs y selects */
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #224a88;
    box-shadow: 0 0 0 3px rgba(34, 74, 136, 0.1);
    outline: none;
}

/* Mejorar botón principal */
#form-peter-btn,
button[type="submit"].btn-success {
    background: linear-gradient(135deg, #224a88 0%, #1a3a6e 100%) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(34, 74, 136, 0.2) !important;
    border: none !important;
    color: #fff !important;
}

#form-peter-btn:hover,
button[type="submit"].btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 74, 136, 0.3) !important;
    background: linear-gradient(135deg, #1a3a6e 0%, #224a88 100%) !important;
}

#form-peter-btn:active,
button[type="submit"].btn-success:active {
    transform: translateY(0) !important;
}

/* Botón con mayor especificidad */
body #form-peter-btn,
body button#form-peter-btn {
    background: linear-gradient(135deg, #224a88 0%, #1a3a6e 100%) !important;
    background-color: #224a88 !important;
    background-image: linear-gradient(135deg, #224a88 0%, #1a3a6e 100%) !important;
}

/* Mejorar títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Mejorar labels */
label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Mejorar borders de inputs */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
select {
    border-width: 2px;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

/* Mejorar mensajes de error */
.error-message {
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    animation: slideInError 0.3s ease;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar responsive */
@media (max-width: 768px) {
    .contenedor_form {
        width: 99% !important;
        margin: 0 auto !important;
        padding: 20px 12px !important;
        border-radius: 12px;
    }
    
    div[style*="width: 50%"] {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px;
    }
}

/* Pantallas muy pequeñas - Espacio máximo horizontal */
@media (max-width: 480px) {
    .contenedor_form {
        padding: 16px 8px !important;
    }
}

/* Ultra pequeño - < 360px */
@media (max-width: 360px) {
    .contenedor_form {
        padding: 12px 4px !important;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* INPUTS CON ICONOS INTERNOS - PUNTO 1 */
/* ════════════════════════════════════════════════════════════════ */

/* Input groups con iconos */
.input-group-icon {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #224a88;
    z-index: 10;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group-icon .form-control {
    padding-left: 45px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 15px;
}

.input-group-icon .form-control:focus {
    border-color: #224a88;
    box-shadow: 0 0 0 4px rgba(34, 74, 136, 0.1);
    padding-left: 45px;
}

.input-group-icon .form-control:focus + .input-icon,
.input-group-icon:focus-within .input-icon {
    color: #1a3a6e;
}

/* Inputs mejorados sin iconos */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select.form-control,
textarea.form-control {
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

textarea.form-control {
    height: auto;
    min-height: 120px;
}

.form-control:hover {
    border-color: #c0c0c0;
}

.form-control:focus {
    border-color: #224a88;
    box-shadow: 0 0 0 4px rgba(34, 74, 136, 0.1);
    outline: none;
}

/* Form groups con mejor spacing */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    letter-spacing: -0.01em;
}

/* Input prefix para teléfonos */
.input-group .form-control:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .form-control:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.input-group .form-control:last-child:focus {
    border-left: 2px solid #224a88;
}

/* Placeholder mejorado */
.form-control::placeholder {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* Input válido (cuando tiene contenido) */
.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Checkmark para inputs con icono a la izquierda */
.input-group-icon .form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px !important;
}

/* Input requerido vacío al hacer focus */
.form-control:required:invalid:focus {
    border-color: #ffc107;
}
