/* Variables para colores (Opcional, pero recomendado para mantener consistencia) */
:root {
    --color-green-800: #065F46; /* text-green-800 */
    --color-green-700: #047857; /* focus:border-green-700 */
    --color-gray-800: #1F2937; /* text-gray-800 */
    --color-gray-700: #374151; /* text-gray-700 */
    --color-gray-600: #4B5563; /* text-gray-600 */
    --color-gray-300: #D1D5DB; /* border-gray-300 */
    --color-gray-50: #F9FAFB; /* bg-gray-50 */
    --color-white: #FFFFFF; /* bg-white */
    --color-yellow-400: #FACC15; /* bg-yellow-400 */
    --color-yellow-500: #FBBF24; /* hover:bg-yellow-500 */
}

/* -------------------- Estilos Generales y Body -------------------- */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 52rem; /* Similar a max-w-lg de Tailwind */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.main-content {
    padding-top: 2.5rem; /* py-10 */
    padding-bottom: 2.5rem; /* py-10 */
}

/* -------------------- Encabezado (Header) -------------------- */
.header {
    background-color: var(--color-white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

.back-link {
    font-size: 1.5rem; /* text-2xl */
    color: var(--color-green-800);
    transition: color 0.3s ease; /* transition-colors duration-300 */
}

.back-link:hover {
    color: var(--color-green-700);
}

.logo {
    height: 2rem; /* h-8 */
}

/* -------------------- Tarjeta Principal (Card) -------------------- */
.card {
    background-color: var(--color-white);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-md */
    padding: 2rem; /* p-6 */
    max-width: 52rem; /* Asegura que la tarjeta no exceda el límite */
    margin-left: auto;
    margin-right: auto;
}

/* -------------------- Títulos e Iconos -------------------- */
.icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem; /* mb-4 */
}

.icon {
    height: 3.5rem; /* h-14 */
}

.title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    text-align: center;
    color: var(--color-green-800);
    margin-bottom: 0.5rem; /* mb-2 */
}

.subtitle {
    text-align: center;
    color: var(--color-gray-600);
    margin-bottom: 2rem; /* mb-8 */
}

/* -------------------- Formulario (Inputs y Labels) -------------------- */
.form-spacing > * {
    margin-bottom: 1.5rem; /* space-y-6 */
}

.form-group:last-child {
    margin-bottom: 0;
}

.label {
    display: block;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: var(--color-gray-700);
    margin-bottom: 0.25rem; /* mb-1 */
}

.input-field {
    width: 100%;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid var(--color-gray-300);
    border-radius: 0.375rem; /* rounded-md */
    box-sizing: border-box; /* Asegura que el padding no cambie el ancho */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* transition-colors duration-300 */
}

.input-field:focus {
    border-color: var(--color-green-700);
    box-shadow: 0 0 0 1px var(--color-green-700); /* focus:ring-green-700 */
    outline: none;
}

/* -------------------- Tipos de Vivienda (Radio Buttons) -------------------- */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* gap-4 */
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-input {
    height: 1rem; /* h-4 */
    width: 1rem; /* w-4 */
    color: var(--color-green-700);
    border-color: var(--color-gray-300);
}

.radio-input:focus {
    box-shadow: 0 0 0 1px var(--color-green-700);
}

.radio-label {
    margin-left: 0.5rem; /* ml-2 */
    display: block;
    font-size: 0.875rem; /* text-sm */
    color: var(--color-gray-800); /* text-gray-900 */
}

/* -------------------- Botón de Continuar -------------------- */
.submit-button {
    width: 100%;
    background-color: var(--color-yellow-400);
    color: var(--color-gray-800); /* text-gray-900 */
    font-weight: 700; /* font-bold */
    padding: 0.75rem 1rem; /* py-3 px-4 */
    border-radius: 0.375rem; /* rounded-md */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--color-yellow-500);
    transform: scale(1.05); /* transform hover:scale-105 */
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-yellow-500); /* focus:ring-2 focus:ring-offset-2 focus:ring-yellow-500 */
}