/* Reset y Configuración Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Formulario de Envío */
.envio {
    width: 93%;
    max-width: 1200px;
    background: linear-gradient(135deg, #ffc42c 0%, #ffb800 100%);
    margin: -10px auto 0;
    padding: 30px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Campo de Número de Guía */
#nGuia {
    width: 90%;
    max-width: 500px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    background-color: #fff;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#nGuia:focus {
    outline: none;
    border-color: #ffc42c;
    box-shadow: 0 0 0 3px rgba(255, 196, 44, 0.1);
}

/* Botón Principal */
#btn {
    background: linear-gradient(135deg, #ff3300 0%, #e62e00 100%);
    border-radius: 0 30px 30px 0;
    width: 180px;
    height: 45px;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 51, 0, 0.3);
}

#btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 0, 0.4);
    background: linear-gradient(135deg, #ff4411 0%, #f73300 100%);
}

#btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 51, 0, 0.3);
}

/* Título de Sección */
.title {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 15px 30px;
    border-radius: 15px;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Contenedor de Información */
.informacion {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.informacion .text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 20px 0;
}

/* Campos de Entrada de Contacto */
#input_contacto {
    width: 90%;
    max-width: 400px;
    height: 48px;
    border-radius: 25px;
    padding: 0 20px;
    border: 2px solid #e0e0e0;
    margin: 8px 0;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

#input_contacto:focus {
    outline: none;
    border-color: #134ba1;
    box-shadow: 0 0 0 3px rgba(19, 75, 161, 0.1);
}

#input_contacto::placeholder {
    color: #999;
    font-weight: 400;
}

/* Modal Mejorado */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background-color: #f8f9fa;
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

/* Footer Mejorado */
.footer-blue {
    background-color: #0164b7;
    padding: 20px 0;
}

.footer-img {
    width: 98%;
    max-width: 1200px;
    margin: 5px 0;
}

/* Checkbox Personalizado */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 5px;
    cursor: pointer;
}

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

/* Tarjeta de Pago */
.card {
    border: none;
    border-radius: 15px;
    background: #fff;
}

.box1 {
    max-width: 500px;
    margin: 20px auto;
}

/* Botón de Pago */
input[type="submit"][name="enviar"] {
    background: linear-gradient(135deg, #134ba1 0%, #0e3670 100%);
    height: 45px;
    width: 200px;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(19, 75, 161, 0.3);
}

input[type="submit"][name="enviar"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 75, 161, 0.4);
    background: linear-gradient(135deg, #1856b8 0%, #0f3d7f 100%);
}

/* Animaciones Suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tracking-form {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .envio {
        width: 100%;
        border-radius: 0 0 20px 20px;
        padding: 20px 15px;
    }
    
    #nGuia {
        width: 95%;
        font-size: 14px;
    }
    
    #btn {
        width: 150px;
        font-size: 14px;
        height: 40px;
    }
    
    .title {
        font-size: 24px;
        padding: 12px 20px;
    }
    
    #input_contacto {
        width: 95%;
        height: 44px;
        font-size: 14px;
    }
    
    .modal-body {
        font-size: 14px;
        padding: 20px;
    }
}

/* Mejoras de Accesibilidad */
:focus-visible {
    outline: 2px dashed #134ba1;
    outline-offset: 4px;
}

/* Transiciones Globales */
input, button, .btn {
    transition: all 0.3s ease;
}

/* Sombras Mejoradas */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Alertas SweetAlert Personalizadas */
.swal2-popup {
    border-radius: 15px !important;
    font-family: inherit !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 600 !important;
}

.swal2-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #134ba1 0%, #0e3670 100%) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 10px 30px !important;
}