/* ==========================================================================
   SISTEMA DE BECAS - MUNICIPALIDAD DISTRITAL DE PUENTE PIEDRA
   Design System: Rojo, Blanco y Negro con Efecto Espejo / Frosted Mirror Glass
   ========================================================================== */

:root {
    /* Paleta Institucional: Rojo, Negro y Blanco */
    --primary: #dc2626;           /* Rojo Institucional Vibrante */
    --primary-dark: #991b1b;      /* Rojo Carmesí Intenso */
    --primary-hover: #b91c1c;
    --primary-light: #fef2f2;     /* Blanco con ligero matiz rojizo */
    
    --dark-base: #0a0e17;         /* Negro Ónix Base */
    --dark-surface: #111827;      /* Negro Carbón Superficie */
    --dark-card: #161f30;         /* Negro Azulado Profundo */
    --dark-border: rgba(255, 255, 255, 0.12);
    
    --accent: #ef4444;            /* Rojo Coral */
    --success: #10b981;           /* Esmeralda */
    --warning: #f59e0b;           /* Ámbar */
    --info: #38bdf8;              /* Sky Cyan */
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Efectos Espejo y Sombras Especulares */
    --mirror-glass: rgba(255, 255, 255, 0.85);
    --mirror-glass-dark: rgba(10, 14, 23, 0.88);
    --mirror-border: 1px solid rgba(255, 255, 255, 0.35);
    --mirror-border-dark: 1px solid rgba(255, 255, 255, 0.15);
    --mirror-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px -4px rgba(10, 14, 23, 0.12), 0 4px 6px -2px rgba(10, 14, 23, 0.05);
    --shadow-lg: 0 20px 35px -5px rgba(10, 14, 23, 0.18), 0 8px 10px -6px rgba(10, 14, 23, 0.08);
    --shadow-mirror: 0 15px 35px 0 rgba(0, 0, 0, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
    --shadow-red-glow: 0 8px 25px rgba(220, 38, 38, 0.35);
    
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Navbar Espejo Difuminado */
.civic-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-bottom: 2px solid rgba(220, 38, 38, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.civic-navbar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ffffff, #000000, #dc2626);
    background-size: 300% 100%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-logo-img,
.navbar-brand img,
img.brand-logo-img {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
    display: inline-block;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.brand-icon-img,
img.brand-icon-img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
    font-size: 0.95rem;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* Hero Section: Negro Profundo con Reflejos y Resplandores Rojos */
.hero-section {
    background: linear-gradient(135deg, #090d16 0%, #171d2c 50%, #000000 100%);
    color: #ffffff;
    padding: 5.5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

/* Efectos de Difuminado Especular con Movimiento Dinámico */
.hero-section::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.45) 0%, rgba(220, 38, 38, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
    animation: floatOrb1 10s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(220, 38, 38, 0.12) 40%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    animation: floatOrb2 12s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.12); }
    100% { transform: translate(25px, -35px) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(45px, -25px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.92); }
}

.hero-title {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.18rem;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.6;
}

/* Tarjetas con Efecto Espejo y Animación Flotante */
.mirror-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.mirror-card:hover {
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.floating-element {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseDotAnim 1.8s infinite;
}

@keyframes pulseDotAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDotGreenAnim 1.8s infinite;
}

@keyframes pulseDotGreenAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Animaciones de Entrada (Entrada Suave) */
.anim-fade-in-up {
    animation: fadeInUpAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in-left {
    animation: fadeInLeftAnim 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-fade-in-right {
    animation: fadeInRightAnim 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUpAnim {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRightAnim {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Shimmer Sweep Effect */
.btn-primary-custom {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 4s infinite;
}

@keyframes btnShimmer {
    0% { left: -60%; }
    30%, 100% { left: 140%; }
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px -4px rgba(220, 38, 38, 0.65), 0 0 15px rgba(220, 38, 38, 0.4);
    color: #ffffff;
}

.btn-outline-light.mirror-card:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 25px -4px rgba(255, 255, 255, 0.2);
}

.mirror-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.mirror-card-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 1);
    border-radius: var(--radius-md);
}

.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-featured {
    border-top: 4px solid var(--primary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-REGISTRADO { background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.status-EN_EVALUACION { background-color: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-APTO { background-color: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-OBSERVADO { background-color: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-NO_APTO { background-color: #0f172a; color: #f8fafc; border: 1px solid #334155; }
.status-BENEFICIARIO { 
    background: linear-gradient(135deg, #dc2626, #b91c1c); 
    color: #ffffff; 
    border: 1px solid #ef4444;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* Botones con Estilo Institucional */
.btn-primary-custom {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-red-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-dark-custom {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-dark-custom:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Wizard Multi-Step Form */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 22px;
    left: 40px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #000000);
    z-index: 2;
    transition: width 0.4s ease;
}

.step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    cursor: default;
}

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 auto 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.2);
}

.step-item.completed .step-circle {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 800;
}

.wizard-step-content {
    display: none;
    animation: fadeInStep 0.35s ease forwards;
}

.wizard-step-content.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Canvas de Firma Digital */
.signature-wrapper {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    padding: 14px;
    text-align: center;
    position: relative;
}

.signature-canvas {
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    cursor: crosshair;
    touch-action: none;
    width: 100%;
    max-width: 500px;
    height: 180px;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 1.8rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: -24px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff;
    }
    .print-only {
        display: block !important;
    }
}

/* ==========================================================================
   DNI CAMERA SCANNER & GUIDELINES OVERLAY
   ========================================================================== */
.camera-scanner-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.camera-video-stream {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.camera-overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dni-guide-card {
    position: relative;
    width: 82%;
    max-width: 440px;
    aspect-ratio: 1.58 / 1;
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(10, 14, 23, 0.72);
    border: 2px dashed rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.dni-guide-card.active-scanning {
    border-color: #dc2626;
}

/* Esquinas Guía Iluminadas */
.dni-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #ef4444;
    border-style: solid;
    border-width: 0;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.8));
}

.dni-corner.tl {
    top: -2px;
    left: -2px;
    border-top-width: 4px;
    border-left-width: 4px;
    border-top-left-radius: 14px;
}
.dni-corner.tr {
    top: -2px;
    right: -2px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-top-right-radius: 14px;
}
.dni-corner.bl {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 4px;
    border-left-width: 4px;
    border-bottom-left-radius: 14px;
}
.dni-corner.br {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 4px;
    border-right-width: 4px;
    border-bottom-right-radius: 14px;
}

/* Marca de Agua / Silueta Referencial */
.dni-guide-silhouette {
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    opacity: 0.6;
}

.dni-photo-placeholder {
    width: 28%;
    height: 75%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    text-align: center;
}

/* Línea Láser Animada */
.dni-scan-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ef4444, #ffffff, #ef4444, transparent);
    box-shadow: 0 0 12px #ef4444;
    animation: scanLaser 2.2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
    0% { top: 5%; opacity: 0.3; }
    50% { opacity: 1; }
    100% { top: 95%; opacity: 0.3; }
}

/* Previsualizaciones de DNI en el Formulario */
.dni-upload-box {
    position: relative;
    transition: all 0.25s ease;
}

.dni-upload-box:hover {
    border-color: #dc2626 !important;
}

.dni-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
}

.dni-preview-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   CARNET PHOTO SCANNER (OVAL GUIDE) & MAP PICKER
   ========================================================================== */
.carnet-guide-card {
    position: relative;
    width: 250px;
    height: 320px;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px rgba(10, 14, 23, 0.75);
    border: 2px dashed #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carnet-face-oval {
    width: 170px;
    height: 220px;
    border: 2.5px dashed rgba(255, 255, 255, 0.8);
    border-radius: 50% / 60% 60% 40% 40%;
    position: relative;
    filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.6));
}

.carnet-face-oval::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.carnet-preview-wrapper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carnet-preview-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.15);
}

/* Map Container in Modal */
#domicilioMap {
    height: 420px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
}

.leaflet-container {
    font-family: var(--font-main) !important;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL UNIVERSAL (IPHONE / ANDROID / TABLETS / DESKTOP)
   ========================================================================== */

/* Prevenir zoom automático molesto en iOS Safari al enfocar inputs */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    input[type="file"],
    select.form-select,
    textarea.form-control {
        font-size: 16px !important;
    }
}

/* Adaptabilidad para pantallas de teléfonos (< 768px) */
@media (max-width: 767.98px) {
    /* Navbar móvil */
    .civic-navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .brand-logo-img {
        height: 34px !important;
        max-height: 34px !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 3rem 0 2.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Wizard Stepper en móviles */
    .wizard-progress {
        margin-bottom: 1.5rem;
    }
    
    .wizard-progress::before,
    .wizard-progress-bar {
        top: 17px;
        left: 18px;
        right: 18px;
    }
    
    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
        margin-bottom: 4px;
        border-width: 2px;
    }
    
    .step-label {
        font-size: 0.65rem;
        line-height: 1.15;
        max-width: 62px;
        word-break: break-word;
    }

    /* Tarjetas del formulario */
    .card-custom {
        padding: 1.25rem !important;
        border-radius: 16px;
    }

    /* Modal de Cámara DNI & Carnet en móviles */
    .camera-scanner-container {
        height: 52vh;
        max-height: calc(100dvh - 170px);
        min-height: 280px;
    }

    .dni-guide-card {
        width: 86%;
        max-width: 320px;
        aspect-ratio: 1.58 / 1;
        height: auto;
    }

    .carnet-guide-card {
        width: 70%;
        max-width: 220px;
        aspect-ratio: 3 / 4;
        height: auto;
    }

    .carnet-face-oval {
        width: 135px;
        height: 175px;
    }

    /* Mapa en móviles */
    #domicilioMap {
        height: 300px;
        max-height: 45vh;
    }

    /* Firma digital en móviles */
    .signature-wrapper {
        touch-action: none;
    }

    .signature-canvas {
        width: 100% !important;
        height: 160px !important;
        touch-action: none !important;
    }
}

/* Pantallas pequeñas (iPhone SE, Galaxy A, etc. < 400px) */
@media (max-width: 399.98px) {
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }
    
    .step-label {
        font-size: 0.58rem;
        max-width: 52px;
    }
    
    .btn-primary-custom,
    .btn-dark-custom {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
    }
}



