/* --- Estilos Base del Wizard (Botones y Opciones) --- */

/* Oculta los pasos que no están activos (para el wizard de presupuesto) */
.wizard-step {
    display: none;
}
.wizard-step.activo {
    display: block;
    /* Animación de entrada */
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Estilo para las opciones (radio/checkbox) */
.wizard-option {
    display: block;
    background-color: #374151; /* gray-700 */
    padding: 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    border: 2px solid #374151; /* gray-700 */
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-option:hover {
    border-color: #60a5fa; /* blue-400 */
}

/* Oculta el input real */
.wizard-option input[type="radio"],
.wizard-option input[type="checkbox"] {
    display: none;
}

/* Muestra un círculo/cuadrado personalizado */
.wizard-option span {
    display: inline-block;
    padding-left: 2.5rem; /* 40px */
    position: relative;
    font-weight: 500;
}

.wizard-option span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    background-color: #4b5563; /* gray-600 */
    border: 2px solid #6b7280; /* gray-500 */
    transition: all 0.2s;
}

/* Círculo para radio */
.wizard-option input[type="radio"] + span::before {
    border-radius: 50%;
}

/* Cuadrado para checkbox */
.wizard-option.checkbox span::before {
    border-radius: 0.25rem; /* rounded */
}

/* Estado Seleccionado */
.wizard-option input:checked + span {
    color: #ffffff; /* white */
}

.wizard-option input:checked + span::before {
    background-color: #3b82f6; /* blue-500 */
    border-color: #60a5fa; /* blue-400 */
}

/* Pone el "check" o "punto" dentro */
.wizard-option input:checked + span::after {
    content: '';
    position: absolute;
    left: 0.45rem; /* 7px */
    top: 50%;
    width: 0.6rem; /* 10px */
    height: 0.6rem; /* 10px */
    background-color: white;
}

/* Círculo para radio */
.wizard-option input[type="radio"]:checked + span::after {
    border-radius: 50%;
    transform: translateY(-50%) scale(1);
}

/* Check para checkbox */
.wizard-option input[type="checkbox"]:checked + span::after {
    background-color: transparent;
    border: 2px solid white;
    border-top: 0;
    border-left: 0;
    width: 0.5rem; /* 8px */
    height: 1rem; /* 16px */
    left: 0.5rem; /* 8px */
    top: 0.25rem; /* 4px */
    transform: rotate(45deg) scale(1);
}

/* Botones */
.wizard-btn {
    background-color: #3b82f6; /* blue-600 */
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}
.wizard-btn:hover {
    background-color: #2563eb; /* blue-700 */
}

.wizard-btn-secondary {
    background-color: #4b5563; /* gray-600 */
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}
.wizard-btn-secondary:hover {
    background-color: #6b7280; /* gray-500 */
}

.wizard-btn-cta {
    display: block;
    background-color: #10b981; /* green-500 */
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.wizard-btn-cta:hover {
    background-color: #059669; /* green-600 */
}


/* --- Estilos Modernos (Apple/Awwwards) --- */

/* Contenedor principal efecto "Glassmorphism" */
.card-container {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800/50 */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(75, 85, 99, 0.5); /* gray-700/50 */
    border-radius: 1.5rem; /* rounded-2xl */
    padding: 2.5rem; /* p-10 */
    width: 100%;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Etiquetas de formulario */
.input-label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    color: #d1d5db; /* gray-300 */
    margin-bottom: 0.5rem; /* mb-2 */
}

/* Contenedor del input (para el ícono/texto COP) */
.input-wrapper {
    position: relative;
}

/* Ícono/Texto dentro del input */
.input-currency {
    position: absolute;
    left: 0.75rem; /* pl-3 */
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; /* gray-400 */
    font-size: 0.875rem;
    pointer-events: none; /* Permite hacer clic "a través" de él */
}

/* Input moderno */
.input-modern {
    width: 100%;
    background-color: rgba(55, 65, 81, 0.5); /* gray-700/50 */
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.75rem; /* p-3 */
    padding-left: 3.5rem; /* pl-14 (para dejar espacio al texto 'COP') */
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

.input-modern:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 */
}

/* Tarjeta de resultados */
.resultado-card {
    background-color: rgba(17, 24, 39, 0.7); /* gray-900/70 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 1rem; /* rounded-xl */
    padding: 1.5rem; /* p-6 */
    height: 100%;
}

/* Animación de entrada para los resultados */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Texto grande del Ratio */
.resultado-highlight {
    font-size: 4.5rem; /* text-7xl */
    font-weight: 800;
    line-height: 1;
    color: white;
    /* Efecto de texto degradado */
    background: linear-gradient(to right, #60a5fa, #a78bfa); /* blue-400 to purple-400 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Alertas de Viabilidad */
.alert-box {
    padding: 1rem;
    border-radius: 0.5rem;
    border-width: 1px;
}
.alert-green {
    background-color: rgba(16, 185, 129, 0.1); /* green-500/10 */
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7; /* green-300 */
}
.alert-red {
    background-color: rgba(239, 68, 68, 0.1); /* red-500/10 */
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5; /* red-300 */
}
.alert-yellow {
    background-color: rgba(234, 179, 8, 0.1); /* yellow-500/10 */
    border-color: rgba(234, 179, 8, 0.5);
    color: #fde047; /* yellow-300 */
}