/* Funnel Specific Styles - Clean Light Theme */

.funnel-progress-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}

.funnel-progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    /* Gold */
    width: 20%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.funnel-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.funnel-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 24px;
}

.step-count {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

/* Radio inputs: esconder sin romper el click en mobile/Safari */
/* Radio inputs: esconder sin romper el click */
.radio-option input[type="radio"]{
    display:block !important;
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    margin:0;
    padding:0;
    pointer-events:auto;
}


/* Barra de progreso sutil (la usada en index.html) */
.funnel-progress {
    width: 100%;
    margin: 0 0 16px 0;
}

.funnel-progress__track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    overflow: hidden;
}

.funnel-progress__bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    transition: width 240ms ease;
}

/* Selected state styling for cards is handled in styles.css via .option-card:has(input:checked) 
   width support, or JS class toggling. For simplicity, we rely on the :checked selector logic below if we add it, 
   or the JS adds a class. Assuming JS interaction or pure CSS.
   
   Let's add pure CSS checked state visual:
*/

.option-card:has(input:checked) {
    border-color: var(--accent-color) !important;
    background-color: #FFF8E6 !important;
    /* Light gold bg */
    box-shadow: 0 0 0 2px var(--accent-color);
}

.option-card:has(input:checked) .check-icon {
    background-color: var(--accent-color);
    color: #fff !important;
    border-color: var(--accent-color);
}

/* Fallback for browsers not supporting :has - The JS should ideally add a class, 
   but for now hover effects lead the way. */

/* Animación para el campo condicional de predio */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Estilos mejorados para el input de predio */
#numeroPredio:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.18) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

#numeroPredio:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
}

#numeroPredio::placeholder {
    color: rgba(255,255,255,0.5);
    font-style: italic;
}