@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Variables de Diseño (Design Tokens) - ACTUALIZADO CON COLOR CORPORATIVO
   ========================================================================== */
:root {
    --inmo-primary: #63b847;                  /* Verde corporativo principal */
    --inmo-primary-light: #63b847;            /* Verde corporativo unificado para botones y acentos */
    --inmo-primary-dark: #4e9b35;             /* Verde más oscuro para estados activos */
    --inmo-accent: #000000;                   /* Negro para llamadas a la acción */
    --inmo-accent-hover: #1a1a1a;             /* Negro más claro para hover */
    --inmo-success: hsl(152, 69%, 31%);
    --inmo-bg-card: rgba(255, 255, 255, 0.95);
    --inmo-text-main: hsl(222, 47%, 15%);
    --inmo-text-muted: hsl(215, 16%, 47%);
    --inmo-border: hsl(214, 32%, 91%);
    --inmo-radius: 16px;
    --inmo-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --inmo-shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    --inmo-font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Contenedor Principal */
.inmo-valoracion-wrapper {
    font-family: var(--inmo-font);
    max-width: 720px;
    margin: 40px auto;
    background: var(--inmo-bg-card);
    border-radius: var(--inmo-radius);
    box-shadow: var(--inmo-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: visible;
    position: relative;
    backdrop-filter: blur(12px);
    color: var(--inmo-text-main);
}

/* ==========================================================================
   Barra de Progreso Superior
   ========================================================================== */
.inmo-progress-container {
    background: hsl(220, 33%, 98%);
    padding: 20px 24px;
    border-bottom: 1px solid var(--inmo-border);
    position: relative;
    border-top-left-radius: var(--inmo-radius);
    border-top-right-radius: var(--inmo-radius);
}

.inmo-progress-bar {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 33.33%;
    background: linear-gradient(90deg, var(--inmo-primary-light), var(--inmo-accent));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.inmo-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.inmo-step-dot {
    font-size: 13px;
    font-weight: 600;
    color: var(--inmo-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inmo-step-dot.active {
    color: var(--inmo-primary-light);
}

.inmo-step-dot.completed {
    color: var(--inmo-primary);
}

/* ==========================================================================
   Contenedores de Pasos (Steps)
   ========================================================================== */
.inmo-form {
    padding: 40px;
}

@media (max-width: 600px) {
    .inmo-form {
        padding: 24px;
    }
}

.inmo-step-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.inmo-step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.inmo-step-header {
    margin-bottom: 32px;
    text-align: center;
}

.inmo-step-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--inmo-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.inmo-step-header p {
    font-size: 15px;
    color: var(--inmo-text-muted);
    margin: 0;
}

/* ==========================================================================
   Elementos de Formulario
   ========================================================================== */
.inmo-form-group {
    margin-bottom: 24px;
}

.inmo-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--inmo-text-main);
}

.inmo-row {
    display: flex;
    gap: 16px;
}

.inmo-col-6 {
    flex: 1;
}

@media (max-width: 600px) {
    .inmo-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Inputs y Textareas */
.inmo-form input[type="text"],
.inmo-form input[type="number"],
.inmo-form input[type="tel"],
.inmo-form input[type="email"],
.inmo-form select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--inmo-font);
    font-size: 15px;
    color: var(--inmo-text-main);
    background: hsl(0, 0%, 100%);
    border: 2px solid var(--inmo-border);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--inmo-shadow-sm);
    box-sizing: border-box;
}

.inmo-form input:focus,
.inmo-form select:focus {
    border-color: var(--inmo-primary-light);
    box-shadow: 0 0 0 4px rgba(99, 184, 71, 0.15);
}

.inmo-form input::placeholder {
    color: hsl(215, 15%, 70%);
}

/* Sufijos de entrada (ej. m²) */
.inmo-input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.inmo-input-suffix input {
    padding-right: 45px;
}

.inmo-input-suffix span {
    position: absolute;
    right: 16px;
    font-weight: 600;
    color: var(--inmo-text-muted);
    pointer-events: none;
}

.inmo-hint {
    display: block;
    font-size: 12px;
    color: var(--inmo-text-muted);
    margin-top: 6px;
}

/* Separador elegante */
.inmo-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.inmo-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--inmo-border);
    z-index: 1;
}

.inmo-divider span {
    position: relative;
    z-index: 2;
    background: var(--inmo-bg-card);
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--inmo-text-muted);
    letter-spacing: 1px;
}

/* ==========================================================================
   Selectores Interactivos (Cajas de Radio Personalizadas)
   ========================================================================== */
.inmo-selector-group {
    display: flex;
    gap: 10px;
}

.inmo-radio-box {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.inmo-radio-box input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.inmo-radio-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: hsl(220, 33%, 98%);
    border: 2px solid var(--inmo-border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--inmo-text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.inmo-radio-box:hover span {
    border-color: #85cf6b;
    color: var(--inmo-primary-light);
}

.inmo-radio-box input:checked + span {
    background: var(--inmo-primary-light);
    border-color: var(--inmo-primary-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 184, 71, 0.25);
    transform: translateY(-1px);
}

/* ==========================================================================
   Botones de Acción
   ========================================================================== */
.inmo-step-actions {
    margin-top: 36px;
    display: flex;
    justify-content: flex-end;
}

.inmo-step-actions.split {
    justify-content: space-between;
}

.inmo-btn {
    font-family: var(--inmo-font);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.inmo-btn:active {
    transform: scale(0.98);
}

.inmo-btn-primary {
    background: var(--inmo-primary-light);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 184, 71, 0.25);
}

.inmo-btn-primary:hover {
    background: #52a736;
    box-shadow: 0 6px 16px rgba(99, 184, 71, 0.35);
    transform: translateY(-2px);
}

.inmo-btn-secondary {
    background: hsl(220, 20%, 94%);
    color: var(--inmo-text-muted);
}

.inmo-btn-secondary:hover {
    background: hsl(220, 25%, 88%);
    color: var(--inmo-text-main);
}

.inmo-btn-success {
    background: #51bd50;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.inmo-btn-success:hover {
    background: var(--inmo-accent-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* ==========================================================================
   Checkboxes
   ========================================================================== */
.inmo-checkbox-group {
    margin: 20px 0;
}

.inmo-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--inmo-text-muted);
    cursor: pointer;
}

.inmo-check-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--inmo-primary-light);
    cursor: pointer;
}

.inmo-check-label a {
    color: var(--inmo-primary-light);
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================================================
   Pantalla de Éxito
   ========================================================================== */
.inmo-success-screen {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.inmo-success-screen.active {
    display: block;
}

.inmo-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3eaa16, #52c41a);
    color: white;
    font-size: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 25px rgba(62, 170, 22, 0.3);
}

.inmo-success-screen h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--inmo-primary);
    margin-bottom: 12px;
}

.inmo-success-screen p {
    font-size: 16px;
    color: var(--inmo-text-muted);
    margin-bottom: 24px;
}

.inmo-success-card {
    background: hsl(220, 33%, 98%);
    border: 1px solid var(--inmo-border);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: left;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--inmo-text-main);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Desplegable Personalizado Premium (Buscador de Poblaciones)
   ========================================================================== */
.inmo-custom-select-container {
    position: relative;
    width: 100%;
}

.inmo-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    background: #ffffff;
    border: 2px solid var(--inmo-primary);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    margin-top: 6px;
    padding: 6px 0;
    box-sizing: border-box;
}

.inmo-custom-select-options.active {
    display: block;
    animation: fadeInScale 0.15s ease-out forwards;
}

.inmo-custom-option {
    padding: 12px 18px;
    font-size: 15px;
    color: var(--inmo-text-main);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
}

.inmo-custom-option:hover {
    background: hsl(100, 70%, 94%);
    color: var(--inmo-primary);
    font-weight: 600;
}

/* Personalizar barra de desplazamiento del menú */
.inmo-custom-select-options::-webkit-scrollbar {
    width: 8px;
}
.inmo-custom-select-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.inmo-custom-select-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.inmo-custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


