/**
 * Estilos específicos para los pasos del itinerario
 * Diseño actualizado para coincidir con el user panel Tailwind CSS
 */

/* Estilos para el indicador de pasos */
.wptc-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a2e27;
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem;
    margin: 0 0 1.5rem 0;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    border: 1px solid #3a4e47;
}

.wptc-steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #3a4e47;
    transform: translateY(-50%);
    z-index: 1;
}

.wptc-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.wptc-step i {
    font-size: 16px;
}

.wptc-step.active {
    background-color: #8ecdb7;
    color: #0a1a14;
    transform: scale(1.1);
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    font-weight: 700;
    animation: pulse-tailwind 2s infinite;
}

@keyframes pulse-tailwind {
    0%, 100% { 
        box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
        transform: scale(1.1);
    }
    50% { 
        box-shadow: 0 6px 12px rgba(76, 175, 80, 0.5);
        transform: scale(1.15);
    }
}

.wptc-step.completed {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #8ecdb7;
    position: relative;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.wptc-step.completed::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
    font-weight: bold;
}

/* Estilos para los títulos de los pasos */
.wptc-step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.25rem 0 1rem 0;
    color: #e2e8f0;
    text-align: center;
    padding: 1rem;
    background-color: #1a2e27;
    border-radius: 0.5rem;
    border: 1px solid #3a4e47;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative !important;
    z-index: 10 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wptc-step-title i {
    margin-right: 0.625rem;
    color: #4CAF50;
}

/* Estilos para las opciones de los pasos */
.wptc-step-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background-color: #1a2e27;
    border-radius: 0.5rem;
    border: 1px solid #3a4e47;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wptc-step-option {
    background-color: #0a1a14;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border: 1px solid #3a4e47;
    color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.wptc-step-option:hover {
    background-color: #10231c;
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.wptc-step-option.selected {
    background-color: #10231c;
    border-color: #4CAF50;
    color: #8ecdb7;
}

.wptc-step-option i {
    margin-right: 0.625rem;
    color: #4CAF50;
}

/* Estilos para los checkboxes en los pasos */
.wptc-step input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    margin-right: 0.625rem;
    background-color: #0a1a14;
    border: 2px solid #4CAF50;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.wptc-step input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.wptc-step input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wptc-itinerary-step {
    background: linear-gradient(135deg, #2a4a5a, #203a43, #2a4a5a);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(42, 74, 90, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para el botón de continuar */
.wptc-continue-btn {
    background: linear-gradient(135deg, #3494E6 0%, #4A90E2 50%, #3494E6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 25px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(58, 148, 230, 0.4);
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wptc-continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.wptc-continue-btn:hover {
    background: linear-gradient(135deg, #4A90E2 0%, #3494E6 50%, #1E88E5 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(58, 148, 230, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.wptc-continue-btn:hover::before {
    left: 100%;
}

.wptc-continue-btn:disabled {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
    filter: grayscale(50%);
}

/* Animaciones para los pasos */
@keyframes step-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wptc-step-content {
    animation: step-appear 0.4s ease-out;
}
