:root {
    --primary: #FF6B00; /* Orange as primary color */
    --primary-dark: #E05A00;
    --secondary: #0052CC;
    --secondary-dark: #003D99;
    --light: #F5F7FA;
    --dark: #000000;
    --gray: #7A869A;
}

/* ===== Global tap-highlight & focus-state polish =====
   Removes the blue/gray flash iOS/Android shows on tap.
   Preserves a branded orange ring for keyboard-only (focus-visible) users. */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Remove default browser outline on tap/click but keep it for keyboard nav */
:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

:focus-visible {
    outline: 2px solid #ea580c !important;
    outline-offset: 2px !important;
    border-radius: 3px;
}

/* Inputs/selects: no blue glow — use a subtle orange focus ring instead */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(234,88,12,0.18) !important;
}
/* For keyboard users, override with full ring */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    box-shadow: 0 0 0 2px rgba(234,88,12,0.35) !important;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.secondary-btn:hover {
    background-color: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ── Service/feature cards: flex-column so all CTAs align at the same level ── */
.feature-card,
a.service-card {
    display: flex !important;
    flex-direction: column;
}

.feature-card {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Make the text+CTA area fill remaining card height */
.feature-card > div:last-child,
a.service-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push CTA to bottom by letting the description paragraph grow */
.feature-card > div:last-child > p,
a.service-card > div:last-child > p {
    flex: 1;
}

/* ── "Ver Más" CTA pill — soft gray default, solid orange on card hover ── */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: #f1f3f5;
    color: #4b5563;
    border: none;
    padding: 0.45rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    align-self: center;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover .card-cta,
.service-card:hover .card-cta {
    background: #FF6B00;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.30);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* =========================================
   STATS SECTION — desktop frosted cards
   ========================================= */
#stats {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

#stats .grid > div {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.375rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.25rem;
}

.gradient-bg {
    background: linear-gradient(135deg, #FF6B00 0%, #FF9A00 100%);
    color: white;
}

.testimonial-card {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: white;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.animated-element {
    transition: all 0.5s ease;
}

.animated-element:hover {
    transform: scale(1.03);
}

.table-header {
    background-color: var(--primary);
    color: white;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    will-change: transform;
    transform: translateZ(0);
}

.whatsapp-btn {
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cta-shadow {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-container {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.form-container.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}


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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

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

.animate-slideInRight {
    animation: slideInRight 0.5s ease-in-out;
}

/* Estilos para las secciones numeradas del formulario */
.form-section-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
}

/* Estilos para el formulario personal */
.personal-form-number {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

/* Estilos para el formulario empresarial */
.business-form-number {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--secondary);
}

/* Mejoras a los campos de formulario */
.form-group {
    margin-bottom: 1.25rem;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
    border-color: var(--primary) !important;
}

#business-form input:focus,
#business-form select:focus,
#business-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.25);
    border-color: var(--secondary) !important;
}

/* Estilo para los códigos promocionales */
.promo-code-container {
    background-color: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

/* Estilo para las personas/contactos adicionales */
.additional-person,
.additional-contact {
    background-color: var(--light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.additional-person:hover,
.additional-contact:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Estilo para el banner promocional */
.promo-banner {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.personal-promo-banner,
.mt-6.bg-gradient-to-r.from-orange-100.to-amber-100 {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 154, 0, 0.1) 100%);
    border-left: 4px solid var(--primary);
}

.business-promo-banner,
.mt-6.bg-gradient-to-r.from-blue-100.to-indigo-100 {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 61, 153, 0.1) 100%);
    border-left: 4px solid var(--secondary);
}

/* Indicadores de validación */
.valid-input,
.border-green-300 {
    border-color: #10b981 !important;
}

.invalid-input,
.border-red-300 {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Efecto de brillo para botones */
.btn-shine,
.group.relative.overflow-hidden {
    position: relative;
    overflow: hidden;
}

.btn-shine::after,
.absolute.top-0.-inset-full.h-full.w-1\/2.z-5.block.transform.-skew-x-12.bg-gradient-to-r.from-transparent.to-white.opacity-20.group-hover\:animate-shine {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: skewX(-25deg);
}

.btn-shine:hover::after,
.group:hover .absolute.top-0.-inset-full.h-full.w-1\/2.z-5.block.transform.-skew-x-12.bg-gradient-to-r.from-transparent.to-white.opacity-20 {
    animation: shine 1.5s infinite;
}

/* Estilo para el botón de mostrar/ocultar contraseña */
.toggle-password {
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-dark);
}

#business-form .toggle-password:hover {
    color: var(--secondary-dark);
}

/* Estilos para los botones de acción del formulario */
.w-full.bg-orange-600.hover\:bg-orange-700.text-white.font-medium.py-3.px-4.rounded-lg.transition-all.text-lg {
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.w-full.bg-orange-600.hover\:bg-orange-700.text-white.font-medium.py-3.px-4.rounded-lg.transition-all.text-lg:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.w-full.bg-blue-600.hover\:bg-blue-700.text-white.font-medium.py-3.px-4.rounded-lg.transition-all.text-lg {
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.w-full.bg-blue-600.hover\:bg-blue-700.text-white.font-medium.py-3.px-4.rounded-lg.transition-all.text-lg:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo para los iconos dentro del formulario */
.w-8.h-8.rounded-full.bg-orange-100.flex.items-center.justify-center.text-orange-600.mr-2 {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.w-8.h-8.rounded-full.bg-blue-100.flex.items-center.justify-center.text-blue-600.mr-2 {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--secondary);
}

.w-10.h-10.rounded-full.bg-orange-100.flex.items-center.justify-center.text-orange-600.mr-4 {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.w-10.h-10.rounded-full.bg-blue-100.flex.items-center.justify-center.text-blue-600.mr-4 {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--secondary);
}

.w-12.h-12.rounded-full.bg-orange-100.flex.items-center.justify-center.text-orange-600.mr-4 {
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary);
}

.w-12.h-12.rounded-full.bg-blue-100.flex.items-center.justify-center.text-blue-600.mr-4 {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--secondary);
}

/* Elementos decorativos del formulario */
.absolute.top-0.right-0.w-32.h-32.bg-orange-100.rounded-bl-full.opacity-50 {
    background-color: rgba(255, 107, 0, 0.1);
}

.absolute.bottom-0.left-0.w-24.h-24.bg-orange-50.rounded-tr-full.opacity-50 {
    background-color: rgba(255, 107, 0, 0.05);
}

.absolute.top-0.right-0.w-32.h-32.bg-blue-100.rounded-bl-full.opacity-50 {
    background-color: rgba(0, 82, 204, 0.1);
}

.absolute.bottom-0.left-0.w-24.h-24.bg-blue-50.rounded-tr-full.opacity-50 {
    background-color: rgba(0, 82, 204, 0.05);
}

/* Estilos para los botones de aplicar código promocional */
.absolute.right-2.top-2.bg-orange-600.hover\:bg-orange-700.text-white.px-4.py-1.rounded-lg.text-sm {
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.absolute.right-2.top-2.bg-orange-600.hover\:bg-orange-700.text-white.px-4.py-1.rounded-lg.text-sm:hover {
    background-color: var(--primary-dark);
}

.absolute.right-2.top-2.bg-blue-600.hover\:bg-blue-700.text-white.px-4.py-1.rounded-lg.text-sm {
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.absolute.right-2.top-2.bg-blue-600.hover\:bg-blue-700.text-white.px-4.py-1.rounded-lg.text-sm:hover {
    background-color: var(--secondary-dark);
}

/* Estilos para los botones de agregar persona/contacto */
.text-orange-600.hover\:text-orange-700.text-sm.font-medium.flex.items-center {
    color: var(--primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.text-orange-600.hover\:text-orange-700.text-sm.font-medium.flex.items-center:hover {
    color: var(--primary-dark);
}

.text-blue-600.hover\:text-blue-700.text-sm.font-medium.flex.items-center {
    color: var(--secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.text-blue-600.hover\:text-blue-700.text-sm.font-medium.flex.items-center:hover {
    color: var(--secondary-dark);
}

/* Estilos para los enlaces dentro del formulario */
.text-orange-600.hover\:text-orange-700.font-medium {
    color: var(--primary);
    transition: all 0.3s ease;
}

.text-orange-600.hover\:text-orange-700.font-medium:hover {
    color: var(--primary-dark);
}

.text-blue-600.hover\:text-blue-700.font-medium {
    color: var(--secondary);
    transition: all 0.3s ease;
}

.text-blue-600.hover\:text-blue-700.font-medium:hover {
    color: var(--secondary-dark);
}

/* Botones de eliminar persona/contacto */
.remove-person,
.remove-contact {
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-person:hover,
.remove-contact:hover {
    opacity: 0.8;
}

/* Mejoras de accesibilidad con estados de enfoque */
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
}

#business-form button:focus {
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.25);
}

/* Estado activo para las pestañas */
button.active {
    background-color: white;
    color: var(--primary);
}

/* Pantallas pequeñas */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-2.gap-6 {
        grid-template-columns: 1fr;
    }
}

/* Pantallas extra pequeñas */
@media (max-width: 480px) {
    .form-section-number {
        min-width: 2rem;
    }
    
    .promo-banner {
        padding: 0.75rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}

/* Soporte para modo oscuro si está habilitado */
@media (prefers-color-scheme: dark) {
    .additional-person,
    .additional-contact {
        background-color: #1f2937;
        border-color: #374151;
    }
}

    /* Estilos para el dropdown de usuario */
    #user-dropdown-menu {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(229, 231, 235, 1);
    }
    
    #user-dropdown-menu a {
        border-radius: 0.375rem;
    }
    
    #user-dropdown-menu a:hover i {
        transform: translateX(2px);
    }
    
    #user-dropdown-menu i {
        transition: transform 0.2s ease;
    }
    
    /* Efecto de elevación al hover en el botón */
    #user-menu-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    /* Transición suave para el botón */
    #user-menu-button {
        transition: all 0.2s ease;
    }
    
    /* Efecto de pulsación al hacer clic */
    #user-menu-button:active {
        transform: translateY(1px);
    }

    /* Agregar esto a tu archivo styles.css */
.login-link {
    background-color: #FF6B00 !important;
    color: white !important;
}

.login-link:hover {
    background-color: #E05A00 !important;
}

/* ===== Modern breadcrumb bar ===== */
.crbox-breadcrumb {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.crbox-breadcrumb .flex.items-center {
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.crbox-breadcrumb a {
    color: #94a3b8 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.crbox-breadcrumb a:hover {
    color: #f97316 !important;
}

/* Current page label */
.crbox-breadcrumb .text-orange-600 {
    color: #374151 !important;
    font-weight: 600 !important;
}

/* Separator chevron */
.crbox-breadcrumb .mx-2 {
    color: #cbd5e1 !important;
    margin-left: 0.4rem !important;
    margin-right: 0.4rem !important;
}

/* =========================================
   HERO TRUST BADGE  (+20 años)
   ========================================= */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 1.125rem;
    padding: 0.9rem 1.25rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.1);
}

.htb-years {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.htb-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: #f97316;
    letter-spacing: -0.03em;
    line-height: 1;
}

.htb-unit {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.1rem;
}

.htb-divider {
    width: 1.5px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, #fdba74, transparent);
    flex-shrink: 0;
}

.htb-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.htb-headline {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.htb-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.htb-perks span {
    font-size: 0.75rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.htb-perks i {
    color: #f97316;
    font-size: 0.7rem;
}

/* =========================================
   TESTIMONIALS CAROUSEL
   ========================================= */
.testimonials-carousel {
    position: relative;
    /* horizontal padding to give arrows room on desktop */
    padding: 0 2.75rem;
}

.testimonials-overflow {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.testimonials-track .testimonial-card {
    flex-shrink: 0;
    /* width set by JS on desktop; CSS fallback for graceful degradation */
    min-width: 280px;
    transition: box-shadow 0.2s ease;
}

/* Arrow buttons — absolutely positioned outside the overflow */
.testimonials-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    color: #374151;
    font-size: 0.8rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    z-index: 5;
}

.testimonials-arrow--prev { left: 0; }
.testimonials-arrow--next { right: 0; }

.testimonials-arrow:hover:not(:disabled) {
    background: #f9fafb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    transform: translateY(-50%) scale(1.07);
}

.testimonials-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    transform: translateY(-50%);
}

/* Dot indicators */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonials-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.25s ease, width 0.25s ease;
}

.testimonials-dot.active {
    background: #f97316;
    width: 1.5rem;
}
/* ── AI extraction badges ─────────────────────────────────────── */
.ai-badge {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .15rem .45rem;
    border-radius: 999px;
    margin-left: .4rem;
    vertical-align: middle;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}
.ai-badge-verify {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.ai-badge-confirm {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── AI extraction banners ────────────────────────────────────── */
.ai-extract-banner {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .85rem;
    border-radius: .55rem;
    font-size: .8375rem;
    font-weight: 500;
    margin-bottom: .9rem;
    line-height: 1.4;
}
.ai-banner-loading {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.ai-banner-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.ai-banner-partial {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.ai-banner-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.ai-banner-neutral {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* ── AI confirm checkbox ──────────────────────────────────────── */
.ai-confirm-wrapper {
    display: none;
    align-items: flex-start;
    gap: .55rem;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: .6rem;
    padding: .7rem .9rem;
    margin-top: .75rem;
    margin-bottom: .5rem;
    font-size: .825rem;
    color: #92400e;
    font-weight: 500;
    line-height: 1.4;
}
.ai-confirm-wrapper input[type=checkbox] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #FF6B00;
    flex-shrink: 0;
    margin-top: .1rem;
    cursor: pointer;
}

/* ── AI estimated badge ───────────────────────────────────────── */
.ai-badge-estimated {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── AI step loader ───────────────────────────────────────────── */
.ai-step-loader {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .8rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .6rem;
    margin-bottom: .9rem;
}
.ai-step-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 500;
    transition: color .25s;
}
.ai-step-icon { width: 1rem; text-align: center; flex-shrink: 0; }
.ai-step-pending { color: #94a3b8; }
.ai-step-active  { color: #0369a1; }
.ai-step-done    { color: #16a34a; }

/* ── AI compliance card ───────────────────────────────────────── */
.ai-compliance-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-radius: .65rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-width: 1.5px;
    border-style: solid;
}
.ai-compliance-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: .05rem;
}
.ai-compliance-body { flex: 1; }
.ai-compliance-title {
    font-weight: 700;
    font-size: .855rem;
    margin: 0 0 .25rem 0;
    line-height: 1.35;
}
.ai-compliance-reason {
    font-size: .8rem;
    margin: 0 0 .3rem 0;
    line-height: 1.5;
    opacity: .85;
}
.ai-compliance-footer {
    font-size: .775rem;
    margin: 0;
    opacity: .7;
    line-height: 1.45;
}
/* RESTRICTED — amber */
.ai-compliance-restricted {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #78350f;
}
.ai-compliance-restricted .ai-compliance-icon { color: #d97706; }
/* COURIER_RESTRICTED — blue-slate info */
.ai-compliance-courier {
    background: #f0f9ff;
    border-color: #7dd3fc;
    color: #0c4a6e;
}
.ai-compliance-courier .ai-compliance-icon { color: #0369a1; }
/* PROHIBITED — red */
.ai-compliance-prohibited {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}
.ai-compliance-prohibited .ai-compliance-icon { color: #dc2626; }

/* ── Tarifas page: intro CTA button ── */
.tarifas-cta-btn {
    background-color: #FF6B00;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.38);
}
.tarifas-cta-btn:hover {
    background-color: #E05A00;
    box-shadow: 0 6px 26px rgba(255, 107, 0, 0.48);
    transform: translateY(-1px);
}
.tarifas-cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   Horizontal-scroll fade affordance
   Hints to mobile users that content extends beyond the visible area.
   Apply .scroll-fade-x to a wrapper containing an overflow-x scrolling child.
   ========================================================================== */
.scroll-fade-x {
    position: relative;
    --scroll-fade-bg: 255, 255, 255; /* override per-container if not on white */
}
.scroll-fade-x::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(var(--scroll-fade-bg), 0) 0%,
        rgba(var(--scroll-fade-bg), 0.85) 100%
    );
    opacity: 1;
    transition: opacity 0.2s ease;
    z-index: 2;
}
@media (min-width: 1024px) {
    /* On desktop, content typically fits — hide the fade. */
    .scroll-fade-x::after {
        display: none;
    }
}

/* ==========================================================================
   iOS input-zoom prevention + reduced-motion support
   ========================================================================== */

/* Bump form input font-size to >= 16px on mobile so iOS Safari doesn't
   auto-zoom the viewport when the user focuses an input. Desktop sizing
   remains unchanged via the unscoped .form-control rule. */
@media (max-width: 768px) {
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* Respect the user's reduced-motion preference: disable non-essential
   animations and transitions to avoid vestibular discomfort. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
