/* ===== CALCULADORA DE TARIFAS SERPOST ===== */
/* Paleta de colores oficial Serpost */
:root {
    --serpost-navy: #1e3a8a;
    --serpost-blue: #1d4ed8;
    --serpost-red: #dc2626;
    --serpost-red-light: #ef4444;
    --serpost-blue-light: #3b82f6;
    --serpost-coral: #f87171;
    --serpost-white: #ffffff;
    --serpost-gray-light: #f8fafc;
    --serpost-gray: #64748b;
    --shadow-light: rgba(30, 58, 138, 0.08);
    --shadow-medium: rgba(30, 58, 138, 0.15);
    --shadow-strong: rgba(30, 58, 138, 0.25);
}

/* ===== ESTILOS GENERALES ===== */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--serpost-navy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER PRINCIPAL ===== */
.serpost-header {
    background: linear-gradient(135deg, var(--serpost-navy) 0%, var(--serpost-blue) 100%);
    color: var(--serpost-white);
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.serpost-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.serpost-header .subtitle {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 300;
}

/* ===== CARDS PRINCIPALES ===== */
.serpost-card {
    background: var(--serpost-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow-light);
    border: 1px solid rgba(30, 58, 138, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.serpost-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.serpost-card-header {
    background: linear-gradient(90deg, var(--serpost-navy) 0%, var(--serpost-blue) 100%);
    color: var(--serpost-white);
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    position: relative;
}

.serpost-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--serpost-red) 0%, var(--serpost-coral) 100%);
}

.serpost-card-body {
    padding: 20px;
}

/* ===== FORMULARIO Y CONTROLES ===== */
.form-section {
    margin-bottom: 20px;
}

.section-title {
    color: var(--serpost-navy);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.section-title.text-center {
    display: block !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

.section-title::before {
    display: none;
}

/* Radio buttons mejorados */
.shipping-type-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.radio-card {
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 220px;
    background: var(--serpost-white);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.radio-card:hover {
    border-color: var(--serpost-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
}

.radio-card.active {
    border-color: var(--serpost-navy);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15);
    transform: translateY(-1px);
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: var(--serpost-navy);
}

.radio-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--serpost-navy);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.radio-card-subtitle {
    font-size: 0.8rem;
    color: var(--serpost-gray);
    font-weight: 500;
}

/* Iconos mejorados para los botones seleccionados */
.radio-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.radio-card.active img {
    filter: drop-shadow(0 2px 8px rgba(30, 58, 138, 0.3));
    transform: scale(1.05);
}

/* Labels mejorados */
.form-label {
    color: var(--serpost-navy);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-label .required {
    color: var(--serpost-red);
    margin-left: 4px;
    font-weight: 700;
}

/* Controles de formulario mejorados */
.form-control, .select2-container .select2-selection {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--serpost-white);
    height: auto;
    min-height: 45px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-control:focus, .select2-container--focus .select2-selection {
    border-color: var(--serpost-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.94-.94-.94-.94L2.3 6.73z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: var(--serpost-red);
}

/* Botones principales mejorados */
.btn-serpost {
    background: linear-gradient(135deg, var(--serpost-navy) 0%, var(--serpost-blue) 100%);
    border: none;
    color: var(--serpost-white);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-serpost:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    color: var(--serpost-white);
}

.btn-serpost:active {
    transform: translateY(0);
}

.btn-serpost-secondary {
    background: transparent;
    border: 2px solid var(--serpost-navy);
    color: var(--serpost-navy);
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.btn-serpost-secondary:hover {
    background: var(--serpost-navy);
    color: var(--serpost-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

/* ===== TARJETAS DE SERVICIOS ===== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: var(--serpost-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--serpost-navy), var(--serpost-blue));
}

.service-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.service-card.economico::before {
    background: linear-gradient(90deg, var(--serpost-navy), var(--serpost-blue));
}

.service-card.expreso::before {
    background: linear-gradient(90deg, var(--serpost-red), var(--serpost-coral));
}

.service-card.prioritario::before {
    background: linear-gradient(90deg, var(--serpost-blue-light), var(--serpost-red-light));
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    color: var(--serpost-white);
    box-shadow: 0 2px 8px var(--shadow-light);
    position: relative;
}

.service-icon.economico {
    background: linear-gradient(135deg, var(--serpost-navy), var(--serpost-blue));
}

.service-icon.expreso {
    background: linear-gradient(135deg, var(--serpost-red), var(--serpost-coral));
}

.service-icon.prioritario {
    background: linear-gradient(135deg, var(--serpost-blue-light), var(--serpost-red-light));
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--serpost-navy);
    margin: 0 0 3px 0;
    letter-spacing: 0.3px;
}

.service-subtitle {
    font-size: 0.75rem;
    color: var(--serpost-red);
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-range {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0 15px 0;
    color: var(--serpost-navy);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.price-range.economico {
    color: var(--serpost-navy);
}

.price-range.expreso {
    color: var(--serpost-red);
}

.price-range.prioritario {
    color: var(--serpost-blue-light);
}

/* ===== OPCIONES DE SERVICIO ===== */
.service-options {
    margin-top: 15px;
}

.option-group {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    transition: opacity 0.3s ease;
}

.option-group:hover {
    transform: translateX(3px);
}

.option-group:hover::before {
    opacity: 0.08;
}

.option-group.certificado {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
}

.option-group.certificado::before {
    background: #10b981;
}

.option-group.no-certificado {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fef7e6);
}

.option-group.no-certificado::before {
    background: #f59e0b;
}

/* ===== CARGOS ADICIONALES ===== */
.additional-charges-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #e5e7eb;
}

.additional-charges-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: center;
}

.additional-charge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.additional-charge-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateX(2px);
}

.option-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--serpost-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.option-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--serpost-navy);
    margin-bottom: 4px;
}

.option-details {
    font-size: 0.75rem;
    color: var(--serpost-gray);
    line-height: 1.3;
}

/* ===== SERVICE TYPES TAGS ===== */
.service-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.service-type-tag {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--serpost-navy);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}

.service-type-tag:hover {
    background: linear-gradient(135deg, var(--serpost-navy), var(--serpost-blue));
    color: var(--serpost-white);
    transform: scale(1.05);
}

/* ===== ESTADOS Y ALERTAS ===== */
.no-results {
    text-align: center;
    padding: 60px 40px;
    color: var(--serpost-gray);
    background: var(--serpost-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px dashed var(--serpost-light-blue);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
    display: block;
}

.no-results h5 {
    color: var(--serpost-navy);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.no-results p {
    color: var(--serpost-gray);
    font-size: 1rem;
    line-height: 1.5;
}

.no-results .suggestions {
    background: var(--serpost-light);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results .suggestions small {
    line-height: 1.6;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--serpost-blue);
}

/* ===== ALERTAS PERSONALIZADAS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    color: #065f46;
    border-left-color: #10b981;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fef7e6);
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    color: #991b1b;
    border-left-color: var(--serpost-red);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e40af;
    border-left-color: var(--serpost-blue);
}

/* ===== ANIMACIONES ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
    }
}

.service-card {
    animation: slideInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de pulso para el botón calcular */
.btn-pulse {
    animation: pulse 2s infinite;
}

.btn-pulse:hover {
    animation: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .serpost-header h1 {
        font-size: 1.5rem;
    }
    
    .serpost-header .subtitle {
        font-size: 0.8rem;
    }
    
    .serpost-card-body {
        padding: 15px;
    }
    
    .shipping-type-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-card {
        max-width: none;
        padding: 12px;
    }
    
    .radio-card-icon {
        font-size: 1.5rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .price-range {
        font-size: 1.3rem;
    }
    
    .btn-serpost, .btn-serpost-secondary {
        width: 100%;
        margin-bottom: 8px;
        padding: 10px 20px;
    }
}

/* ===== CENTRADO DE CAMPOS PARA ENVÍO INTERNACIONAL ===== */
#group_international_destination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#group_international_destination .form-label {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

#group_international_destination .select2-container {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
}

/* Centrar el campo de peso cuando está en la fila de envío internacional */
.row:has(#group_international_destination) {
    justify-content: center;
    align-items: center;
}

.row:has(#group_international_destination) .col-md-4,
.row:has(#group_international_destination) .col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.row:has(#group_international_destination) .form-label {
    text-align: center;
    width: 100%;
}

.row:has(#group_international_destination) .input-group {
    max-width: 300px;
    margin: 0 auto;
}

/* Estilos adicionales para mejor presentación en envío internacional */
#group_international_destination,
.col-lg-4:has(#shipping_weight) {
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .serpost-header {
        padding: 15px 10px;
    }
    
    .serpost-header h1 {
        font-size: 1.3rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-icon {
        margin-right: 0;
        margin-bottom: 8px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
}

/* ===== MEJORAS EN ACCESIBILIDAD ===== */
.btn-serpost:focus,
.btn-serpost-secondary:focus,
.form-control:focus {
    outline: 2px solid var(--serpost-blue);
    outline-offset: 2px;
}

.radio-card:focus-within {
    outline: 2px solid var(--serpost-blue);
    outline-offset: 2px;
}

/* ===== NUEVAS TARJETAS DE OPCIONES DE ENVÍO ===== */
.shipping-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
    justify-content: center;
}

.shipping-option-card {
    background: var(--serpost-white);
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 180px;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
    overflow: hidden;
}

.shipping-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--serpost-navy), var(--serpost-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.shipping-option-card:hover {
    border-color: var(--serpost-blue);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.20);
}

.shipping-option-card:hover::before {
    transform: scaleX(1);
}

.shipping-option-card input[type="radio"] {
    display: none;
}

.shipping-option-card input[type="radio"]:checked + .selection-indicator {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, var(--serpost-navy), var(--serpost-blue));
    color: white;
}

.shipping-option-card input[type="radio"]:checked ~ div .option-title {
    color: var(--serpost-navy);
    font-weight: 800;
}

.shipping-option-card input[type="radio"]:checked ~ div .option-subtitle {
    color: var(--serpost-blue);
}

.shipping-option-card input[type="radio"]:checked + .selection-indicator + div .option-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.3));
}

.selection-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.option-icon {
    font-size: 3.5rem;
    margin: 15px 0 10px 0;
    transition: all 0.4s ease;
    display: block;
}

.option-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--serpost-gray);
    margin: 8px 0 4px 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.option-subtitle {
    font-size: 0.9rem;
    color: var(--serpost-gray);
    margin: 0 0 12px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.option-description {
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 20px;
    margin-top: auto;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Animaciones para las tarjetas */
.shipping-option-card:nth-child(1) {
    animation: slideInUp 0.6s ease 0.1s both;
}

.shipping-option-card:nth-child(2) {
    animation: slideInUp 0.6s ease 0.2s both;
}

.shipping-option-card:nth-child(3) {
    animation: slideInUp 0.6s ease 0.3s both;
}

/* Efectos especiales para la tarjeta seleccionada */
.shipping-option-card:has(input:checked) {
    border-color: var(--serpost-navy);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03), rgba(59, 130, 246, 0.03));
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
    transform: translateY(-4px);
}

.shipping-option-card:has(input:checked)::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--serpost-red), var(--serpost-coral));
}

/* Responsive para las nuevas tarjetas */
@media (max-width: 768px) {
    .shipping-options-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 5px;
    }
    
    .shipping-option-card {
        min-height: 160px;
        padding: 18px;
    }
    
    .option-icon {
        font-size: 3rem;
        margin: 12px 0 8px 0;
    }
    
    .option-title {
        font-size: 1.2rem;
    }
    
    .option-subtitle {
        font-size: 0.85rem;
    }
    
    .option-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .shipping-option-card {
        min-height: 140px;
        padding: 15px;
    }
    
    .option-icon {
        font-size: 2.5rem;
        margin: 10px 0 6px 0;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .selection-indicator {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* ===== OVERRIDE PARA SELECT2 ===== */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    min-height: 45px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--serpost-blue) !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1) !important;
    transform: translateY(-1px);
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    padding: 0 !important;
    line-height: 21px !important;
    font-size: 0.95rem !important;
}

/* Ocultar la X de limpiar en Select2 */
.select2-selection__clear {
    display: none !important;
}

/* Asegurar que el dropdown tenga el estilo correcto */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Ajustar la flecha del select */
.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 41px !important;
    top: 2px !important;
    right: 12px !important;
}

/* Alinear inputs y selects */
.form-control, 
.select2-container .select2-selection,
.input-group .form-control,
.input-group .select2-container .select2-selection {
    height: 45px !important;    
    min-height: 45px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
}

/* ===== ESTILOS GENERALES COMPACTOS ===== */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--serpost-navy);
    line-height: 1.4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

/* Reducir espaciado general y mejorar alineación */
.row {
    margin: 0;
}

.col-md-4, .col-lg-3, .col-md-6, .col-12 {
    padding: 0 10px;
    margin-bottom: 15px;
}

.d-flex.gap-3 {
    gap: 10px !important;
}

/* Asegurar que todos los elementos del formulario tengan la misma altura */
.form-control,
.select2-container,
.input-group {
    height: 45px !important;
}

.select2-container {
    width: 100% !important;
}

/* Input group más compacto y alineado */
.input-group {
    display: flex !important;
    align-items: stretch !important;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
    height: 45px !important;
    margin-bottom: 0 !important;
}

.input-group-text {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    background: var(--serpost-gray-light) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 600 !important;
    color: var(--serpost-navy) !important;
}
