/* ===== CONSULTATION FORM - ESTILOS ESPECÍFICOS ===== */

/* ===== CONSULTATION HERO ===== */
.consultation-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.consultation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23grad1)" /><circle cx="800" cy="300" r="150" fill="url(%23grad1)" /><circle cx="400" cy="700" r="120" fill="url(%23grad1)" /></svg>');
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.benefit i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
}

/* ===== FORM SECTION ===== */
.consultation-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 80vh;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e0e0e0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    border-radius: 3px;
    width: 25%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== FORM STEPS ===== */
.consultation-form {
    position: relative;
    min-height: 600px;
}

.form-step {
    padding: 40px;
    display: none;
    animation: fadeInUp 0.4s ease;
}

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

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

.step-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.step-header p {
    color: var(--neutral-gray);
    font-size: 1rem;
}

/* ===== FORM LAYOUT ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* ===== SERVICE QUESTIONS ===== */
.service-questions {
    display: none;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    background: #f8f9fa;
}

.service-questions.active {
    display: block;
    border-color: var(--primary-blue);
    background: var(--white);
    animation: slideInUp 0.3s ease;
}

.service-questions h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: #ffffff;
    transform: translateY(-2px);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.radio-option input[type="radio"]:checked ~ span:not(.radio-custom) {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== CHECKBOX BUTTONS ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: var(--primary-blue);
    background: #ffffff;
    transform: translateY(-2px);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
}

.checkbox-option input[type="checkbox"]:checked ~ span:not(.checkbox-custom) {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== BUDGET OPTIONS ===== */
.budget-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.budget-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.budget-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.budget-option {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.budget-option:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,255,0.1);
}

.budget-option.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,255,0.2);
}

.budget-option input[type="radio"] {
    display: none;
}

.budget-range {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.budget-period {
    font-size: 0.85rem;
    opacity: 0.8;
}

.budget-option.selected .budget-period {
    opacity: 1;
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #f8f9fa;
    color: var(--neutral-gray);
    border: 2px solid #e0e0e0;
}

.btn-prev:hover {
    background: var(--white);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,255,0.3);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,255,0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-yellow), #e6e600);
    color: var(--black);
    box-shadow: 0 5px 15px rgba(194,194,60,0.3);
}

.btn-submit:hover {
    box-shadow: 0 8px 25px rgba(194,194,60,0.4);
}

/* ===== SUCCESS STEP ===== */
.success-step {
    text-align: center;
    padding: 60px 40px;
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.success-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.success-content p {
    color: var(--neutral-gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.next-steps {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.next-steps h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.next-step {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.next-step i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    width: 20px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== TRUST INDICATORS ===== */
.trust-indicators {
    padding: 60px 0;
    background: var(--white);
}

.trust-content {
    text-align: center;
}

.trust-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 20px;
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.trust-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--neutral-gray);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .consultation-hero {
        padding: 60px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* ===== CORRECCIÓN PARA PROGRESS STEPS EN MÓVIL ===== */
    .progress-steps {
        flex-wrap: nowrap; /* Mantener en una sola fila */
        gap: 5px; /* Reducir gap */
        justify-content: space-between;
    }
    
    .step {
        flex: 1; /* Mantener flex: 1 para distribución equitativa */
        min-width: auto; /* Remover min-width fijo */
        max-width: none; /* Sin restricción de max-width */
    }
    
    .step-number {
        width: 35px; /* Reducir tamaño del círculo */
        height: 35px;
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .step-label {
        font-size: 0.7rem; /* Reducir tamaño del texto */
        line-height: 1.2;
        max-width: 80px; /* Limitar ancho del texto */
        word-break: break-word; /* Permitir break de palabras si es necesario */
    }
    
    .form-step {
        padding: 30px 20px;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .budget-options {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .progress-container {
        padding: 20px 10px; /* Reducir padding lateral */
    }
    
    .progress-steps {
        gap: 2px; /* Gap mínimo */
    }
    
    .step-number {
        width: 30px; /* Círculos más pequeños */
        height: 30px;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .step-label {
        font-size: 0.65rem; /* Texto aún más pequeño */
        max-width: 70px;
        line-height: 1.1;
    }
    
    .form-step {
        padding: 20px 15px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .budget-option {
        padding: 15px 10px;
    }
    
    .success-step {
        padding: 40px 20px;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .trust-items {
        grid-template-columns: 1fr;
    }
}

/* ===== PANTALLAS MUY PEQUEÑAS ===== */
@media (max-width: 360px) {
    .step-label {
        display: none; /* Ocultar labels si el espacio es muy limitado */
    }
    
    .step-number {
        margin-bottom: 0; /* Sin margen si no hay label */
    }
    
    .progress-steps {
        gap: 8px; /* Más espacio entre círculos sin labels */
    }
}

@media (max-width: 320px) {
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .progress-steps {
        gap: 1px;
    }
    
    .progress-container {
        padding: 15px 5px;
    }
}

/* ===== LOADING STATE ===== */
.form-step.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.radio-option:focus-within,
.checkbox-option:focus-within,
.budget-option:focus-within {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== VALIDATION STATES ===== */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #4CAF50;
    background: #f2fdf2;
}